/*
Theme Name: Hello Elementor Child
Description: Child theme for Tripleo Laboratories. All custom CSS and code live here so updates to the Hello Elementor parent theme never overwrite the site.
Author: Tripleo Laboratories
Template: hello-elementor
Version: 1.0.1785413547
*/

/* ===== Triple O Lab — global theme styling (Hello Elementor) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

body,
.site-navigation,
.wpcf7 { font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif; }

h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(10, 37, 64, 0.08);
    padding: 8px 0;
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
/* the tagline next to the logo clutters the bar — hide it */
.site-header .site-description { display: none !important; }
.site-header .site-branding { margin: 0; }
.site-header .site-branding img,
.site-header .site-logo img,
.site-header img.custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}
.site-header .site-branding .site-title { font-size: 22px; }

.site-header nav ul,
.site-navigation ul,
.site-header .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header nav li { position: relative; }
.site-header nav a,
.site-navigation a {
    display: inline-block;
    padding: 9px 15px;
    color: #0a2540;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.site-header nav a:hover,
.site-navigation a:hover,
.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
    color: #1565c0;
    background: #eef4fc;
}
/* ---------- Header search ---------- */
.to-search-toggle {
    background: transparent; border: 0; cursor: pointer;
    padding: 8px; margin-left: 6px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.to-search-toggle svg { width: 20px; height: 20px; fill: #0a2540; transition: fill .2s; }
.to-search-toggle:hover { background: #eef4fc; }
.to-search-toggle:hover svg { fill: #1565c0; }

.to-search-panel {
    position: fixed; top: 0; left: 0; right: 0;
    background: #fff; box-shadow: 0 12px 34px rgba(10,37,64,.14);
    transform: translateY(-100%); transition: transform .28s ease;
    z-index: 1000; padding: 20px;
}
.to-search-panel.is-open { transform: translateY(0); }
.to-search-form { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.to-search-form input[type=search] {
    flex: 1; border: 0; border-bottom: 2px solid #dbe4ef; background: transparent;
    font-family: 'Montserrat', sans-serif; font-size: 22px; padding: 12px 6px; outline: none; color: #0a2540;
}
.to-search-form input[type=search]:focus { border-color: #1565c0; }
.to-search-form button[type=submit] {
    background: #1565c0; border: 0; border-radius: 8px; padding: 12px 16px; cursor: pointer;
    display: inline-flex; align-items: center; transition: background .2s;
}
.to-search-form button[type=submit]:hover { background: #0d3e7d; }
.to-search-form button[type=submit] svg { width: 20px; height: 20px; fill: #fff; }
.to-search-close { background: transparent; border: 0; font-size: 30px; line-height: 1; color: #8aa0b6; cursor: pointer; padding: 0 6px; }
.to-search-close:hover { color: #0a2540; }
@media (max-width: 600px) { .to-search-form input[type=search] { font-size: 17px; } }

/* SmileTRU (last item) as a call-to-action button */
.site-header nav li:last-child a {
    background: #1565c0;
    color: #fff;
    padding: 9px 18px;
}
.site-header nav li:last-child a:hover { background: #0d3e7d; color: #fff; }

/* ---------- Hide Hello's default footer (we build our own) ---------- */
.site-footer { display: none !important; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 { max-width: 100%; }
.wpcf7 .triopleo-form { display: block; }
.wpcf7-form p { margin: 0 0 14px; }
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=url],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f6f9fd;
    font-size: 15px;
    color: #223;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.wpcf7 input[type=text]:hover,
.wpcf7 input[type=email]:hover,
.wpcf7 input[type=tel]:hover,
.wpcf7 textarea:hover { background: #eef4fb; }
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .15);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }

/* two-column contact form grid */
.tof br { display: none; }
.tof .tof-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.tof .tof-full { margin-bottom: 16px; }
.tof .tof-row p, .tof .tof-full p, .tof .tof-submit p { margin: 0; }
/* full-width, prominent submit inside the form card */
.tof .tof-submit input[type=submit] { width: 100%; padding: 16px; font-size: 16px; }
@media (max-width: 600px) { .tof .tof-row { grid-template-columns: 1fr; } }
.wpcf7 input[type=submit] {
    background: #1565c0;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.wpcf7 input[type=submit]:hover { background: #0d3e7d; transform: translateY(-1px); }
/* placeholders slightly muted */
.wpcf7 ::placeholder { color: #8aa0b6; }

/* ---------- Cards & icons ---------- */
/* card graphic in the offering/appliance image boxes: show the WHOLE image,
   never cropped, just capped to a sensible width and centered */
.elementor-widget-image-box .elementor-image-box-img {
    margin-bottom: 18px;
}
.elementor-widget-image-box .elementor-image-box-img img {
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;   /* contain = fit whole image, no cropping */
    margin: 0 auto;
}
.elementor-image-box-wrapper .elementor-image-box-title { margin-bottom: 10px; }

/* never crop any image anywhere; always show it whole */
.elementor img,
.site-header img { object-fit: contain !important; }

/* subtle lift on hover for boxed columns (cards) */
.elementor-column .elementor-widget-wrap { transition: transform .2s ease, box-shadow .2s ease; }

/* icon-box spacing */
.elementor-widget-icon-box .elementor-icon-box-title { margin-bottom: 6px; }
.elementor-widget-icon-box .elementor-icon { font-size: 34px; }

/* headings a touch tighter/refined */
h1, h2, h3 { letter-spacing: .2px; }

/* ---------- Misc ---------- */
img { max-width: 100%; height: auto; }
a { color: #1565c0; }
.elementor-section { overflow: hidden; }

/* ========================================================= */
/*  HOME HERO + FEATURE BAR                                   */
/* ========================================================= */
.to-eyebrow {
    color: #1565c0 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.to-h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 47px;
    line-height: 1.12;
    color: #0a2540;
    margin: 0 0 20px;
}
.to-h1 span { color: #1565c0; }
.to-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #51657a;
    max-width: 520px;
    margin: 0 0 30px;
}

/* ========================================================= */
/*  COMMON THEME FOOTER (one footer, all pages)               */
/* ========================================================= */
.to-site-footer { background: #0a2540; color: #fff; font-family: 'Open Sans', sans-serif; }
.to-site-footer .to-container { max-width: 1120px; margin: 0 auto; padding: 72px 20px 78px; }
.to-foot-h { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 36px; color: #fff; text-align: center; margin: 0; }
.to-foot-accent { width: 70px; height: 3px; background: #1565c0; margin: 16px auto 14px; border-radius: 2px; }
.to-foot-sub { text-align: center; color: #b9cbe0; font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 auto 34px; }
.to-foot-grid { display: grid; grid-template-columns: 55% 45%; gap: 26px; align-items: stretch; }
.to-foot-card { border-radius: 14px; padding: 36px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.to-foot-formcard { background: #fff; }
.to-foot-formcard h3 { font-family: 'Montserrat', sans-serif; color: #0a2540; margin: 0 0 18px; font-size: 23px; }
.to-foot-infocard { background: linear-gradient(160deg, #123a63, #0d3e7d); }
.to-foot-infocard h3 { font-family: 'Montserrat', sans-serif; color: #fff; margin: 0 0 22px; font-size: 23px; }
.to-foot-info { list-style: none; margin: 0; padding: 0; }
.to-foot-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.to-foot-info li .ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #1565c0; display: flex; align-items: center; justify-content: center; }
.to-foot-info li .ic svg { fill: #fff; }
.to-foot-info li strong { display: block; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 16px; margin-bottom: 2px; }
.to-foot-info li span, .to-foot-info li a { color: #c3d5ea; font-size: 15px; text-decoration: none; }
.to-foot-info li a:hover { color: #fff; }
.to-foot-copy { background: #071a2e; color: #9db4cc; text-align: center; padding: 22px 16px; font-size: 14px; }
@media (max-width: 767px) {
    .to-foot-grid { grid-template-columns: 1fr; }
    .to-foot-h { font-size: 26px; }
    .to-site-footer .to-container { padding: 52px 16px 58px; }
    .to-foot-card { padding: 26px 22px; }
}

/* ========================================================= */
/*  BLOG — grid archive + single post                         */
/* ========================================================= */
/* let blog/archive/single templates run full width inside Hello's main */
.blog .site-main, .archive .site-main, .single .site-main, .search .site-main {
    max-width: none; padding: 0; margin: 0;
}
.to-blog-hero {
    background: linear-gradient(135deg, #0d3e7d, #1565c0);
    color: #fff;
    text-align: center;
    padding: 66px 20px 70px;
}
.to-blog-hero .to-eyebrow { color: #cfe0ff; text-align: center; }
.to-blog-hero h1 {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 42px; margin: 0; color: #fff;
}
.to-blog-hero p { color: #dbe8f8; font-size: 18px; max-width: 680px; margin: 12px auto 0; }

.to-blog-wrap { max-width: 1160px; margin: 0 auto; padding: 64px 20px 78px; }
.to-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.to-post-card {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(13,62,125,0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.to-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13,62,125,0.14); }
.to-post-thumb {
    display: block; aspect-ratio: 16/10; overflow: hidden;
    background: linear-gradient(135deg, #1b4f9c, #0d3e7d);
}
.to-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.to-post-card:hover .to-post-thumb img { transform: scale(1.05); }
.to-post-thumb.is-placeholder { position: relative; }
.to-post-thumb.is-placeholder::after {
    content: "\f0f9\00a0 Triple O"; /* subtle mark */
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); font-size: 20px; letter-spacing: 1px;
}
.to-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.to-post-cat {
    display: inline-block; align-self: flex-start;
    background: #eef4fc; color: #1565c0;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.to-post-body h2, .to-post-body h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.to-post-body h2 a, .to-post-body h3 a { color: #0a2540; text-decoration: none; }
.to-post-body h2 a:hover, .to-post-body h3 a:hover { color: #1565c0; }
.to-post-excerpt { color: #56657a; font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.to-post-meta { color: #8aa0b6; font-size: 13px; margin-top: auto; padding-top: 12px; border-top: 1px solid #eef2f7; }
.to-post-more { display: inline-block; margin-top: 12px; color: #1565c0; font-weight: 700; font-family: 'Montserrat', sans-serif; text-decoration: none; }
.to-post-more:hover { color: #0d3e7d; }

.to-pagination { text-align: center; margin-top: 46px; }
.to-pagination .page-numbers {
    display: inline-block; padding: 9px 15px; margin: 0 3px; border-radius: 8px;
    background: #eef4fc; color: #1565c0; text-decoration: none; font-weight: 600;
}
.to-pagination .page-numbers.current { background: #1565c0; color: #fff; }

/* Single post — split hero (colored panel + featured image) */
.to-post-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 460px; }
.to-post-hero.no-img { grid-template-columns: 1fr; }
.to-post-hero__text {
    background: linear-gradient(150deg, #0d3e7d 0%, #1565c0 100%);
    color: #fff;
    /* left padding aligns content to the same left edge as the header logo
       (header container is max-width 1200 + 24px side padding) */
    padding: 64px 7% 64px max(24px, calc((100vw - 1200px) / 2 + 24px));
    display: flex; flex-direction: column; justify-content: center;
}
.to-post-back {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
    border: 2px solid rgba(255,255,255,.55); color: #fff; text-decoration: none;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px;
    padding: 10px 24px; border-radius: 40px; margin-bottom: 34px; transition: background .2s;
}
.to-post-back:hover { background: rgba(255,255,255,.16); color: #fff; }
.to-post-date { color: #cfe0f5; font-size: 15px; letter-spacing: .4px; margin: 0 0 16px; }
.to-post-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 42px; line-height: 1.16;
    color: #fff; margin: 0; padding-left: 24px; border-left: 4px solid rgba(255,255,255,.45);
}
.to-post-hmeta { margin-top: 22px; color: #cfe0f5; font-size: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.to-post-hmeta .to-post-cat { background: rgba(255,255,255,.16); color: #fff; margin: 0; }
.to-post-hero__media { position: relative; min-height: 320px; background: linear-gradient(135deg,#1b4f9c,#0d3e7d); }
.to-post-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.to-single-wrap { max-width: 820px; margin: 0 auto; padding: 54px 20px 80px; }
.to-single-body > :first-child { margin-top: 0; }
.to-single-body { font-size: 17px; line-height: 1.75; color: #33414f; }
.to-single-body h2 { font-family: 'Montserrat', sans-serif; color: #0a2540; margin: 32px 0 12px; }
.to-single-body h3 { font-family: 'Montserrat', sans-serif; color: #0a2540; margin: 26px 0 10px; }
.to-single-body p { margin: 0 0 18px; }
.to-single-body img { max-width: 100%; height: auto; border-radius: 12px; }
.to-single-body blockquote { border-left: 4px solid #1565c0; background: #f4f8fd; margin: 24px 0; padding: 16px 22px; border-radius: 0 10px 10px 0; color: #33414f; }
.to-single-back { display: inline-block; margin-top: 30px; color: #1565c0; font-weight: 700; text-decoration: none; font-family: 'Montserrat', sans-serif; }

@media (max-width: 980px) { .to-blog-grid { grid-template-columns: repeat(2, 1fr); } }
/* split hero stacks: image on top, panel below */
@media (max-width: 900px) {
    .to-post-hero { grid-template-columns: 1fr; }
    .to-post-hero__media { order: -1; min-height: 240px; }
    .to-post-title { font-size: 30px; }
    .to-post-hero__text { padding: 40px 24px; }
}
@media (max-width: 640px) {
    .to-blog-grid { grid-template-columns: 1fr; }
    .to-blog-hero h1 { font-size: 28px; }
    .to-post-title { font-size: 26px; }
    .to-blog-wrap { padding: 44px 16px 56px; }
    .to-single-body { font-size: 16px; }
}

/* Pill badges (About story) */
.to-badge {
    display: inline-block;
    background: #eaf2fc;
    color: #1565c0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 6px 8px 0;
}

/* Check-mark lists (About page) */
.to-check { list-style: none; margin: 0; padding: 0; }
.to-check li { position: relative; padding-left: 30px; margin-bottom: 11px; line-height: 1.5; }
.to-check li::before {
    content: "\2713";
    position: absolute; left: 0; top: 0;
    color: #1565c0; font-weight: 800;
}
.to-check-light li { color: #eaf2fc; }
.to-check-light li::before { color: #8fc0ff; }

/* Arrow list (Research articles card) */
.to-arrow { list-style: none; margin: 0; padding: 0; }
.to-arrow li {
    position: relative;
    padding: 11px 0 11px 26px;
    color: #eaf2fc;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.to-arrow li:last-child { border-bottom: 0; }
.to-arrow li::before {
    content: "\203A";
    position: absolute; left: 4px; top: 9px;
    color: #8fc0ff; font-weight: 800; font-size: 18px;
}

/* Feature bar: thin dividers between the four items (the only inner section) */
.elementor-inner-section > .elementor-container > .elementor-column { position: relative; }
.elementor-inner-section > .elementor-container > .elementor-column:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 1px;
    background: rgba(255,255,255,0.16);
}

/* ========================================================= */
/*  RESPONSIVE — all devices                                  */
/* ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .site-header .header-inner { padding: 0 16px; }
    .elementor img, .site-header img { object-fit: contain !important; }
    .to-h1 { font-size: 36px; }
}

/* Phone */
@media (max-width: 767px) {
    /* headings backup scale (in case a heading lacks a mobile size) */
    .elementor-widget-heading h1 { font-size: 27px !important; line-height: 1.22 !important; }
    .elementor-widget-heading h2 { font-size: 23px !important; line-height: 1.25 !important; }
    .elementor-widget-heading h3 { font-size: 20px !important; }
    h1, h2, h3, h4, p, li { overflow-wrap: break-word; word-wrap: break-word; }

    /* contact form: single column */
    .tof .tof-row { grid-template-columns: 1fr; }

    /* keep content off the screen edges */
    .elementor-widget-text-editor, .elementor-widget-heading { padding-left: 2px; padding-right: 2px; }

    /* card graphics a touch smaller */
    .elementor-widget-image-box .elementor-image-box-img img { max-width: 108px; }

    /* header: logo + hamburger sit comfortably */
    .site-header img.custom-logo { max-height: 44px; }

    /* hero */
    .to-h1 { font-size: 27px; }
    .to-sub { font-size: 16px; max-width: 100%; }
    .to-eyebrow { font-size: 12px; }
    /* feature bar: stack, drop the vertical dividers */
    .elementor-inner-section > .elementor-container > .elementor-column:not(:first-child)::before { display: none; }
    .elementor-inner-section > .elementor-container > .elementor-column { margin-bottom: 6px; }
}

/* Small phones */
@media (max-width: 480px) {
    /* 16px inputs prevent iOS auto-zoom on focus */
    .wpcf7 input[type=text],
    .wpcf7 input[type=email],
    .wpcf7 input[type=tel],
    .wpcf7 textarea { font-size: 16px; padding: 12px 14px; }
    .elementor-widget-heading h1 { font-size: 24px !important; }
    .to-h1 { font-size: 24px; }
    .wpcf7 input[type=submit] { padding: 14px; }
}
