/*
 * THITO site base (redesigned pages only)
 * Replaces bootstrap.min.css, style.css, responsive.css, custom.css and font-awesome.css
 * on the redesigned pages: self-hosted fonts, a small reset, and only the rules the shared
 * footer.php markup needs. Legacy pages keep loading the original theme files.
 */

/* Fonts (self-hosted variable fonts, latin subset) ------------------------------------
 * See partials/fonts.php. */

/* Inter and Urbanist @font-face rules are in partials/fonts.php (in each page head), so the font
   files load from the visitor's own address (www.thito.in or thito.in). */

/* Fallbacks sized to match the web fonts, so text does not reflow when they arrive */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('ArialMT'), local('Helvetica');
    size-adjust: 106.53%;
    ascent-override: 91.05%;
    descent-override: 22.53%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Urbanist Fallback';
    src: local('Arial'), local('ArialMT'), local('Helvetica');
    size-adjust: 82.86%;
    ascent-override: 114.66%;
    descent-override: 30.17%;
    line-gap-override: 0%;
}

/* Reset ----------------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

main,
nav,
header,
footer,
section,
article,
aside,
figure,
figcaption,
details,
summary { display: block; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; }

p,
figure,
blockquote,
address { margin: 0; }

address { font-style: normal; }

ul, ol { margin: 0; padding: 0; }

img,
svg { vertical-align: middle; border: 0; }

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus { text-decoration: none; }

button,
input,
textarea,
select {
    margin: 0;
    font: inherit;
    color: inherit;
}

button { cursor: pointer; }

[hidden] { display: none !important; }

/* Scroll progress bar (header markup); styled further in homepage.css */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 3px;
}

/* Shared footer (footer.php) ------------------------------------------------------------- */

.footer .container {
    width: 100%;
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.footer [class*="col-"] {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .footer .col-md-3 { width: 25%; }
    .footer .col-md-4 { width: 33.33333333%; }
    .footer .col-md-5 { width: 41.66666667%; }
}

.footer .img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer .list-unstyled { padding-left: 0; list-style: none; }
.footer .text-center { text-align: center; }
.footer .iq-mt-25 { margin-top: 25px; }
.footer .iq-mb-15 { margin-bottom: 15px; }
.footer .iq-tw-6 { font-weight: 600; }
.footer .iq-ptb-20 { padding: 20px 0; }
.footer .overview-block-ptb { padding: 40px 0; }
.footer .footer-copyright { border-top: 1px solid #ededed; }

.footer .info-share {
    margin: 30px 0 0;
    padding: 30px 0 0;
    text-align: center;
}

.footer .info-share li {
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    list-style: none;
}

.footer .info-share li a {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
    color: #fdfdfd;
    background: transparent;
    border: 1px solid #666;
    border-radius: 50%;
    text-align: center;
}

/* Social icons: replace the four Font Awesome glyphs (footer + contact page) with SVG ----- */

.thito-home .fa {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: var(--th-icon) center / contain no-repeat;
    mask: var(--th-icon) center / contain no-repeat;
}

.thito-home .fa-facebook {
    --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 22v-8.2h2.8l.4-3.2h-3.2V8.5c0-.9.3-1.6 1.6-1.6h1.7V4.1c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.3v2.4H7.3v3.2h2.8V22h3.4z'/%3E%3C/svg%3E");
}

.thito-home .fa-instagram {
    --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2c3.2 0 3.6 0 4.8.1 3.3.1 4.8 1.7 4.9 4.9.1 1.3.1 1.6.1 4.8s0 3.6-.1 4.8c-.1 3.2-1.7 4.8-4.9 4.9-1.3.1-1.6.1-4.8.1s-3.6 0-4.8-.1c-3.3-.1-4.8-1.7-4.9-4.9C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.8C2.4 3.9 3.9 2.4 7.2 2.3 8.4 2.2 8.8 2.2 12 2.2zm0 4.9a4.9 4.9 0 1 0 0 9.8 4.9 4.9 0 0 0 0-9.8zm0 8.1a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zm5.1-9.4a1.2 1.2 0 1 0 0 2.3 1.2 1.2 0 0 0 0-2.3z'/%3E%3C/svg%3E");
}

.thito-home .fa-linkedin {
    --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.9 8.8H3.5V20h3.4V8.8zM5.2 3.4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM20.5 13.8c0-3-.6-5.3-4.2-5.3-1.7 0-2.8.9-3.3 1.8V8.8H9.8V20h3.4v-5.5c0-1.5.3-2.9 2.1-2.9s1.8 1.7 1.8 3V20h3.4v-6.2z'/%3E%3C/svg%3E");
}

.thito-home .fa-youtube-play {
    --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2s-.2-1.6-.9-2.3c-.9-.9-1.9-.9-2.3-1C16.6 3.6 12 3.6 12 3.6s-4.6 0-7.8.3c-.5.1-1.5.1-2.3 1-.7.7-.9 2.3-.9 2.3S.7 9.1.7 11v1.8c0 1.9.3 3.8.3 3.8s.2 1.6.9 2.3c.9.9 2 .9 2.6 1 1.8.2 7.5.2 7.5.2s4.6 0 7.8-.3c.5-.1 1.5-.1 2.3-1 .7-.7.9-2.3.9-2.3s.3-1.9.3-3.8V11c0-1.9-.3-3.8-.3-3.8zM9.7 15V8.4l6.1 3.3-6.1 3.3z'/%3E%3C/svg%3E");
}

.footer .info-share li a .fa { width: 17px; height: 17px; }
