/* ==========================================================================
   TwelveTex overrides
   Loaded after the Crafto template CSS (style, responsive, design-agency).
   All site fixes live here - do not edit the template files.
   Breakpoints follow Bootstrap/Crafto: 575 / 767 / 991 / 1199.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Global
   -------------------------------------------------------------------------- */

/* Template default, commented out in style.css: keeps images inside their column. */
img {
    max-width: 100%;
    height: auto;
}

/* Brand pill button (was an inline <style> block in _Layout). */
.custom-button {
    display: inline-block; /* inline + padding overlapped neighbouring rows */
    background-color: #76d0e5;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-button:hover,
.custom-button:focus {
    background-color: #5cb3c9;
    color: #fff;
}

/* White variant used on coloured backgrounds. */
.custom-button--light {
    background-color: #fff;
    color: #76d0e5;
}

.custom-button--light:hover,
.custom-button--light:focus {
    background-color: #eefafd;
    color: #5cb3c9;
}

/* Rounded image corners (shared by several pages). */
.rcorners4 {
    border-radius: 30px;
}

/* --------------------------------------------------------------------------
   2. Header
   -------------------------------------------------------------------------- */

header .navbar-brand img {
    width: auto;
    max-height: 126px; /* native logo height = current desktop look */
}

@media (min-width: 992px) {
    /* Let the brand column fit the logo instead of a fixed col-lg-2,
       so the logo no longer spills under the menu column. */
    header .tt-brand-col {
        flex: 0 0 auto;
        width: auto;
    }

    header .tt-menu-col {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 1199px) {
    header .navbar-brand img {
        max-height: 80px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* Logo + 5 links are ~20px too wide for 1024 with the default 24px padding. */
    header .navbar .navbar-nav .nav-link {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 991px) {
    /* design-agency.css sets --white to grey (#d8d8d4); the page itself is white now. */
    header .navbar.bg-transparent {
        background-color: #fff !important;
    }

    header .navbar-brand {
        padding: 18px 0;
    }

    header .navbar-brand img {
        max-height: 44px;
    }
}

@media (max-width: 575px) {
    header .navbar-brand img {
        max-height: 36px;
    }
}

/* --------------------------------------------------------------------------
   3. Footer
   -------------------------------------------------------------------------- */

.tt-footer-container {
    width: 100%;
    max-width: 90%;
}

/* Large white logo with tagline (template caps footer logos at 56px). */
footer .tt-footer-logo img {
    max-height: none;
    width: 422px;
}

.tt-footer-address {
    color: #fff;
    line-height: 1.7;
}

.tt-footer-address__title,
.tt-footer-address__company {
    display: block;
    font-size: large;
    font-weight: 700;
}

.tt-footer-address__title {
    text-decoration: underline;
}

footer a.tt-footer-email,
footer a.tt-footer-email:hover {
    color: #fff;
    word-break: break-word;
}

@media (max-width: 991px) {
    footer .tt-footer-logo img {
        width: 300px;
    }
}

@media (max-width: 575px) {
    .tt-footer-container {
        max-width: 100%;
    }

    footer .tt-footer-logo img {
        width: 240px;
    }

    footer a.tt-footer-email {
        font-size: 18px;
    }
}

/* Big striped "Twelve tex" word above the footer: the template sinks it
   below the section edge, which cuts the letters off on small screens. */
@media (max-width: 991px) {
    .tt-footer-word-section {
        padding-bottom: 0;
    }

    .tt-footer-word {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        display: block;
        line-height: 0.9;
    }
}

/* --------------------------------------------------------------------------
   4. Home page
   -------------------------------------------------------------------------- */

/* Hero (Home, About) - full-width container with a cover photo */
.tt-hero {
    width: 100%;
    max-width: 3000px;
    background-repeat: no-repeat;
    background-size: cover;
}

.tt-hero__title {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: 0.8;
    text-align: center;
    color: #fff;
}

.tt-hero__the {
    font-size: 60px;
    vertical-align: bottom;
    color: #fff;
}

.tt-hero__big {
    font-size: 100px;
    vertical-align: middle;
    color: #fff;
}

.tt-hero__accent {
    vertical-align: top;
    color: #72ccda;
}

.tt-hero__intro {
    margin-bottom: 32px;
    font-size: 20px;
    color: #fff;
}

@media (max-width: 991px) {
    .tt-hero-section {
        padding-top: 0;
    }

    .tt-hero {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .tt-hero__title,
    .tt-hero__big {
        font-size: min(100px, 16vw);
    }

    .tt-hero__the {
        font-size: min(60px, 10vw);
    }
}

@media (max-width: 575px) {
    .tt-hero__intro {
        font-size: 18px;
        line-height: 1.5;
    }
}

/* Big striped words (CREATIVITY / EXPERTISE).
   Desktop: sized to the viewport so they stop running into the headings
   (the customer's .fs-350 change made them 300px at 1200-1399). */
@media (min-width: 992px) {
    .tt-big-word--left {
        font-size: min(254px, 16vw);
        line-height: min(254px, 16vw);
    }

    .tt-big-word--right {
        font-size: min(254px, 17.6vw);
    }
}

/* 992-1399: smaller containers, so shrink the words and limit the left bleed
   to the page edge (at 1024 the "C" was fully off-screen). */
@media (min-width: 992px) and (max-width: 1399px) {
    .tt-big-word--left,
    .tt-big-word--right {
        font-size: 15vw;
    }

    .tt-big-word--left {
        line-height: 15vw;
    }

    .tt-big-word--right {
        line-height: 1.18;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tt-big-word-wrap.outside-box-left-20 {
        margin-left: calc((960px - 100vw) / 2 + 12px);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .tt-big-word-wrap.outside-box-left-20 {
        margin-left: calc((1140px - 100vw) / 2 + 12px);
    }
}

/* Mobile/tablet: no off-screen bleed, scale to fit the screen width. */
@media (max-width: 991px) {
    .tt-big-word-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .tt-big-word {
        font-size: min(29vw, 210px);
        line-height: 1.05;
    }
}


/* 01/02/03 steps: equal-height number bars, even when one text runs longer. */
.tt-steps .process-step-item {
    height: 100%;
}

.tt-steps .process-step-icon-wrap {
    align-self: stretch;
}

.tt-steps .process-step-icon-wrap .number {
    height: 100% !important;
    min-height: 140px;
}

.tt-steps.tt-steps--short .process-step-icon-wrap .number {
    min-height: 100px; /* About uses 100px bars */
}

/* Facts & figures: the template's % margins depend on label length,
   so numbers sat at different heights. Use fixed gaps instead. */
.tt-facts .feature-box-content p {
    margin-bottom: 0 !important;
}

.tt-facts .feature-box-content h3 {
    margin-top: 100px !important;
}

@media (max-width: 991px) {
    .tt-facts .feature-box-content h3 {
        margin-top: 60px !important;
    }
}

@media (max-width: 575px) {
    .tt-facts .feature-box-content h3 {
        margin-top: 15px !important;
    }
}

/* --------------------------------------------------------------------------
   5. Shared page parts (Home, About, Services, Contact, Sustainability)
   -------------------------------------------------------------------------- */

/* Background photos (were inline style="background-image: ...") */
.tt-bg-cloud { background-image: url(/images/cloud.jpg); }
.tt-bg-about { background-image: url(/images/AboutMain.jpg); }
.tt-bg-back12 { background-image: url(/images/back12.jpg); }
.tt-bg-design-focus { background-image: url(/images/DesignFocus.jpg); }
.tt-bg-services1 { background-image: url(/images/services1.jpg); }
.tt-bg-service6 { background-image: url(/images/service6.jpg); }
.tt-bg-service7 { background-image: url(/images/service7.jpg); }
.tt-bg-service8 { background-image: url(/images/service8.jpg); }
.tt-bg-contact1 { background-image: url(/images/contact1.jpeg); }

/* Page intro section that starts right under the header (Services). */
.tt-page-intro {
    margin-top: 150px;
    margin-bottom: 50px;
}

@media (max-width: 991px) {
    .tt-page-intro {
        margin-top: 90px;
    }
}

/* Section wrapping a full-width photo band. */
.tt-band-section {
    margin-top: 150px;
    margin-bottom: 150px;
}

@media (max-width: 991px) {
    .tt-band-section {
        margin-top: 90px;
        margin-bottom: 90px;
    }
}

@media (max-width: 575px) {
    .tt-band-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
}

.tt-image-band {
    position: relative;
}

.tt-image-band > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Dark overlay so white text stays readable on busy photos. */
.tt-overlay {
    position: relative;
}

.tt-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.tt-overlay--50::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.tt-layer-top {
    position: relative;
    z-index: 2;
}

/* Long sentence inside a photo band (About "Design focus"). */
@media (max-width: 991px) {
    .tt-band-heading--long {
        font-size: min(60px, 7.5vw);
        line-height: 1.1;
    }
}

/* Bands holding text grow with the text on phones instead of clipping it. */
@media (max-width: 767px) {
    .tt-image-band.tt-image-band--text {
        height: auto !important;
        min-height: 400px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Coloured label above a band ("DESIGN FOCUS"). */
.tt-kicker {
    display: block;
    font-size: 70px;
    line-height: 1.2;
    color: #72ccda;
}

/* Large statement next to a thin striped bar (About). */
.tt-statement {
    display: block;
    font-size: 55px;
    line-height: 1;
}

.tt-bar-thin {
    width: 10px;
}

@media (max-width: 767px) {
    .tt-kicker {
        font-size: 44px;
    }

    .tt-statement {
        font-size: 28px;
        line-height: 1.2;
    }
}

/* Round photos (About). */
.circle-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

/* Certification logo grids (Services, Sustainability). */
.tt-cert-grid .client-box {
    padding: 5% 2% !important;
}

.tt-cert-grid img {
    width: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .tt-cert-grid .client-box {
        padding: 15px !important;
    }

    .tt-cert-grid img {
        height: auto !important;
        max-height: 80px;
    }
}

/* --------------------------------------------------------------------------
   6. Privacy policy modal
   -------------------------------------------------------------------------- */

.modal-dialog.tt-policy-dialog {
    max-width: 1400px;
}

.tt-policy-dialog .modal-content {
    padding: 30px;
}

.tt-policy,
.tt-policy p,
.tt-policy li,
.tt-policy__heading {
    color: #000;
}

.tt-policy p,
.tt-policy li,
.tt-policy__heading {
    font-size: larger;
}

.tt-policy__heading {
    display: inline-block;
    font-weight: 700;
}

.tt-policy a.tt-policy__ext {
    font-size: larger;
    color: blue;
}

@media (max-width: 575px) {
    .tt-policy-dialog .modal-content {
        padding: 10px;
    }
}
