#header { background: #fff; }
#header .ticelec-brand { display: inline-block; float: none; margin: 0; padding: 10px 0; }
#header .ticelec-brand img { display: block; width: 94px; height: auto; }
body.home:has(.tic-home) .sidebar-1 { display: none; }
body.home:has(.tic-home) .mainbody-inner { margin-inline: 0; }
body.home:has(.tic-home) #content { float: none; width: auto; min-width: 0; margin-inline: 0; box-sizing: border-box; }
.tic-home { color: #142238; font-size: 16px; line-height: 1.6; }
.tic-home h1, .tic-home h2, .tic-home h3 { margin: 0; line-height: 1.13; color: inherit; }
.tic-hero { padding: clamp(23px, 5vw, 58px); background: #0a2442; border-radius: 12px; color: #fff; }
.tic-hero h1 { font-size: clamp(32px, 5vw, 59px); max-width: 21ch; font-family: system-ui, sans-serif; font-weight: 750; letter-spacing: -.035em; }
.tic-home .tic-eyebrow { margin: 0 0 14px; color: #ffec38; font-weight: 700; }
.tic-hero .tic-intro { max-width: 52ch; margin: 20px 0 25px; color: #e3edf8; font-size: clamp(17px, 2vw, 21px); }
.tic-home .tic-button { display: inline-block; padding: 11px 19px; background: #ffec38; color: #0a2442; border: 2px solid #ffec38; border-radius: 6px; font-weight: 700; }
.tic-home .tic-button:hover { background: #fff080; color: #0a2442; }
.tic-home a:focus-visible { outline: 3px solid #0785d7; outline-offset: 4px; }
.tic-section { margin: clamp(32px, 5vw, 62px) 0; }
.tic-section > h2 { font-size: clamp(26px, 4vw, 40px); }
.tic-section > p { max-width: 72ch; margin: 10px 0 20px; }
.tic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tic-card { padding: clamp(16px, 3vw, 30px); border: 1px solid #cbd9e6; border-top: 4px solid #0080c6; border-radius: 8px; background: #f3f7fb; }
.tic-card p { margin: 9px 0 14px; }
.tic-card h3 { font-size: 25px; }
.tic-card .tic-audience { color: #284b68; font-weight: 700; margin-top: 0; }
.tic-card a, .tic-links a { color: #075589; text-decoration: underline; font-weight: 700; }
.tic-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 16px 0 0; list-style: none; }
@media (max-width: 650px) {
    .tic-grid { grid-template-columns: 1fr; }
    #header .ticelec-brand img { width: 76px; }
}

#header .ticelec-brand img { width: 132px; }
.mainbody {
    background-image: url("/images/logo/ticelec-watermark.webp");
    background-image: linear-gradient(rgba(255, 255, 255, .946), rgba(255, 255, 255, .946)), url("/images/logo/ticelec-watermark.webp");
    background-repeat: no-repeat;
    background-position: center, right 5% top 86px;
    background-size: auto, clamp(320px, 51vw, 680px) auto;
}
.tic-hero {
    background-image: linear-gradient(rgba(10, 36, 66, .78), rgba(10, 36, 66, .78)), url("/images/logo/ticelec-watermark.webp");
    background-repeat: no-repeat;
    background-position: center, right 26px center;
    background-size: auto, min(43%, 510px) auto;
}
@media (max-width: 650px) {
    #header .ticelec-brand img { width: 96px; }
    .mainbody { background-position: center, right -80px top 110px; }
    .tic-hero { background-position: center, right -55px bottom 12px; background-size: auto, 72% auto; }
}

body.home:has(.tic-home) .mainbody { background-image: none; }
body:not(.home) .mainbody { background-position: center, right 5% top 160px; }
@media (max-width: 650px) {
    body:not(.home) .mainbody { background-position: center, right -65px top 135px; }
}

#header .row > div:has(.ticelec-brand) { width: auto; max-width: 100%; }
#header .ticelec-brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 28px);
    max-width: 100%;
    box-sizing: border-box;
    color: #0a2442;
    text-decoration: none;
    white-space: normal;
}
#header .ticelec-brand img { flex: 0 0 auto; width: clamp(64px, 11vw, 126px); }
.ticelec-brand-copy { display: grid; gap: 4px; text-align: left; }
#header .ticelec-brand-name {
    display: block;
    font: 800 clamp(23px, 4vw, 52px)/1.02 system-ui, sans-serif;
    letter-spacing: -.035em;
    color: #0a2442;
    text-transform: none;
}
.ticelec-brand-disciplines, .ticelec-brand-specialism {
    font: 650 clamp(12px, 1.4vw, 17px)/1.25 system-ui, sans-serif;
    text-transform: none;
}
.ticelec-brand-disciplines { color: #23496b; }
.ticelec-brand-specialism { color: #075589; }
.mainbody, body.home:has(.tic-home) .mainbody {
    background-color: #fff2c9;
    background-image: url("/images/logo/irrigation-circuit-tile.webp");
    background-repeat: repeat;
    background-position: center 42px;
    background-size: clamp(225px, 34vw, 500px) auto;
}

#header .ticelec-brand-copy { min-width: 0; }
#header .ticelec-brand-name {
    width: auto;
    height: auto;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.mainbody, body.home:has(.tic-home) .mainbody {
    background-image: linear-gradient(rgba(255,242,201,.19), rgba(255,242,201,.19)), url("/images/logo/irrigation-circuit-tile.webp");
    background-repeat: no-repeat, repeat;
    background-position: center, center 42px;
    background-size: auto, clamp(225px, 34vw, 500px) auto;
}

#header .row > div:has(.ticelec-brand) { float: none; width: 100%; margin-inline: 0; }
#header .ticelec-brand {
    --brand-side: clamp(64px, 11vw, 126px);
    display: grid;
    grid-template-columns: var(--brand-side) minmax(0, 1fr) var(--brand-side);
    gap: clamp(6px, 1vw, 16px);
    width: 100%;
}
#header .ticelec-brand img { width: var(--brand-side); }
#header .ticelec-brand-copy { grid-column: 2; text-align: center; }
#header .ticelec-brand-name { font-size: clamp(22px, 3.9vw, 50px); }
@media (max-width: 540px) {
    #header .ticelec-brand { --brand-side: clamp(39px, 11vw, 56px); }
    #header .ticelec-brand-name { font-size: clamp(15px, 4.3vw, 23px); }
    .ticelec-brand-disciplines, .ticelec-brand-specialism { font-size: clamp(10px, 2.8vw, 13px); }
}

#header .container > .row:has(.ticelec-brand) { margin-inline: 0; }

/* Masthead: keep the wordmark centred while the logo sits at the left. */
#header {
    background-color: #fff9e6;
    background-image: linear-gradient(90deg, #fff1b8 0%, #fffaf0 34%, #fffaf0 66%, #fff1b8 100%);
    border-top: 4px solid #102d4c;
    border-bottom: 1px solid #e1c86b;
}
#header .ticelec-brand {
    padding-block: clamp(12px, 2vw, 21px);
}
#header .ticelec-brand img {
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(10, 36, 66, .19);
}
#header .ticelec-brand-copy { gap: 5px; }
#header .ticelec-brand-name {
    color: #0b2542;
    letter-spacing: -.04em;
}
#header .ticelec-brand-disciplines {
    color: #224360;
    letter-spacing: .075em;
}
#header .ticelec-brand-specialism {
    justify-self: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 4px 10px 5px;
    color: #0b426b;
    background: #ffefb3;
    border: 1px solid #e9cf75;
    border-radius: 999px;
}
@media (max-width: 540px) {
    #header .ticelec-brand-copy { gap: 4px; }
    #header .ticelec-brand-disciplines { letter-spacing: .025em; }
    #header .ticelec-brand-specialism { padding: 3px 6px; }
}

.tic-consultancy { color: #142238; line-height: 1.6; }
.tic-consultancy h1, .tic-consultancy h2, .tic-consultancy h3 { color: inherit; line-height: 1.15; }
.tic-consultancy h1 { margin: 0 0 14px; font: 750 clamp(30px, 4vw, 49px)/1.07 system-ui, sans-serif; letter-spacing: -.035em; }
.tic-consultancy h2 { font-size: clamp(23px, 3vw, 32px); margin: 0 0 14px; }
.tic-consultancy h3 { font-size: 20px; margin: 0 0 8px; }
.tic-consultancy p { margin: 0 0 10px; }
.tic-consultancy section { margin: 0 0 30px; }
.tic-consultancy-lead, .tic-consultancy-contact { background: #0a2442; color: #fff; border-radius: 10px; padding: clamp(19px, 4vw, 35px); }
.tic-consultancy-lead p { max-width: 65ch; color: #e7eff9; }
.tic-consultancy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tic-consultancy-project { background: #fffcf4; border: 1px solid #e9dba9; border-top: 3px solid #1681b5; border-radius: 7px; padding: clamp(14px, 2.1vw, 22px); }
.tic-consultancy-project p:last-child, .tic-consultancy-contact p:last-child { margin-bottom: 0; }
.tic-consultancy a { color: #075589; text-decoration: underline; }
.tic-consultancy-contact a { color: #ffeb65; font-weight: 700; }
@media (max-width: 670px) {
    .tic-consultancy-grid { grid-template-columns: 1fr; }
}

body:has(.tic-products-directory) .sidebar-1 { display: none; }
body:has(.tic-products-directory) .mainbody-inner { margin-inline: 0; }
body:has(.tic-products-directory) #content { float: none; width: auto; margin-inline: 0; }
.tic-products-directory { color: #142238; margin-bottom: 36px; }
.tic-products-directory h1 { color: #0a2442; font: 750 clamp(31px,4vw,48px)/1.1 system-ui,sans-serif; margin: 0 0 10px; }
.tic-products-directory > p { margin-bottom: 19px; }
.tic-product-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.tic-product-card { display: flex; flex-direction: column; color: #142238; background: #fffcf4; border: 1px solid #e9dba9; border-radius: 8px; overflow: hidden; text-decoration: none; }
.tic-product-card:hover { box-shadow: 0 3px 12px rgba(10,36,66,.16); color: #142238; text-decoration: none; }
.tic-product-card:focus-visible { outline: 3px solid #075589; outline-offset: 3px; }
.tic-product-card img { display: block; width: 100%; box-sizing: border-box; height: 172px; object-fit: contain; padding: 13px; background: #fff; border-bottom: 1px solid #e9dba9; }
.tic-product-card h2 { color: #075589; font: 700 18px/1.2 system-ui,sans-serif; margin: 12px 13px 5px; }
.tic-product-card p { margin: 0 13px 15px; }
@media (max-width: 920px) { .tic-product-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px) { .tic-product-cards { grid-template-columns: 1fr; } }

/* Irrigation photograph: Anrita1705, Pixabay image 5064925, Pixabay Content License. */
#header {
    background-image: linear-gradient(90deg, #fff1b8 0%, #fffaf0 46%, rgba(255,250,240,.96) 67%, rgba(255,241,184,.76) 100%), url("/images/logo/long-throw-sprinkler-photo.jpg");
    background-repeat: no-repeat;
    background-position: center, right 43%;
    background-size: cover, auto 150%;
}
@media (max-width: 540px) {
    #header {
        background-image: linear-gradient(90deg, #fff5ce 0%, rgba(255,250,240,.95) 52%, rgba(255,241,184,.78) 100%), url("/images/logo/long-throw-sprinkler-photo.jpg");
        background-size: cover, auto 125%;
    }
}
