/*
 * Timoure et Group – www.timoure.cz
 *
 * The site's only stylesheet. Plain CSS, no framework and no build step
 * (replaces Bootstrap 3 + LESS, see PLAN.md step 3).
 *
 * Breakpoints (CSS variables cannot be used in @media, so they are written as numbers):
 *   mobile   ...951px    (max-width: 951px)
 *   tablet   952px...    (min-width: 952px)
 *   desktop  1200px...   (min-width: 1200px)
 */

/* acumin-pro (Typekit); @import must come first */
@import url('https://use.typekit.net/gta1dxa.css');


/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    /* Colours */
    --color-text: #333;              /* body text, menu button */
    --color-ink: #161617;            /* links, logo, navigation */
    --color-black: #000;             /* link hover, borders */
    --color-bg: #fff;                /* page, header, panels */
    --color-hover: #7d7d7d;          /* navigation hover */
    --color-catalog-hover: #8b8b8b;  /* catalogue label hover */
    --color-catalog-border: #ccc;    /* catalogue cover frame */
    --color-panel-border: #ddd;      /* Facebook post panels */

    /* Shadows */
    --shadow-panel: 0 1px 1px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-family: 'acumin-pro', sans-serif;
    --font-size-base: 14px;
    --font-size-h1: 36px;
    --font-size-h2: 30px;
    --font-size-h3: 24px;
    --font-size-nav: 18px;           /* main navigation */
    --font-size-nav-eshop: 27px;     /* E-SHOP link */
    --font-size-nav-secondary: 14px; /* Facebook and e-mail links */
    --font-size-catalog-label: 12px;
    --line-height-base: 1.42857143;  /* 20px at 14px */
    --line-height-headings: 1.1;
    --font-weight-light: 200;        /* headings, navigation */
    --font-weight-link: 300;         /* links in the content */
    --font-weight-normal: 400;
    --font-weight-strong: 500;       /* b, strong, dt, h3 */

    /* Layout */
    --gutter: 30px;                  /* grid gutter; columns get half on each side */
    --container-tablet: 930px;
    --container-desktop: 1170px;
    --header-height: 9.8em;
    --header-height-mobile: 4em;
    --header-padding-top: 1.5em;
    --section-gap: 14em;             /* space between homepage sections */
    --z-header: 1030;

    --menu-max-height: 380px;        /* open mobile menu; scrolls if longer */
    --menu-max-height-landscape: 200px;

    /* Motion */
    --menu-duration: 0.35s;          /* mobile menu open/close */
}


/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-ink);
    text-decoration: none;
    background-color: transparent;
}
a:active,
a:hover {
    outline: 0;
}
a:focus,
a:hover {
    color: var(--color-black);
    text-decoration: underline;
}
a:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

h1,
h2,
h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: var(--font-weight-strong);
    line-height: var(--line-height-headings);
    color: inherit;
}
h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-light);
}
h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-light);
}
h3 {
    font-size: var(--font-size-h3);
}

p {
    margin: 0 0 10px;
}

b,
strong {
    font-weight: var(--font-weight-strong);
}

small {
    font-size: 85%;
}

ul {
    margin-top: 0;
    margin-bottom: 10px;
}

dl {
    margin-top: 0;
    margin-bottom: 20px;
}
dt {
    font-weight: var(--font-weight-strong);
}
dd {
    margin-left: 0;
}

img {
    border: 0;
    vertical-align: middle;
}

svg:not(:root) {
    overflow: hidden;
}

video {
    display: inline-block;
    vertical-align: baseline;
}

button {
    margin: 0;
    overflow: visible;
    font: inherit;
    color: inherit;
    text-transform: none;
    -webkit-appearance: button;
    cursor: pointer;
}
button::-moz-focus-inner {
    padding: 0;
    border: 0;
}


/* ==========================================================================
   Layout: container, grid, helpers
   ========================================================================== */

.container {
    margin-right: auto;
    margin-left: auto;
    padding-right: calc(var(--gutter) / 2);
    padding-left: calc(var(--gutter) / 2);
}
@media (min-width: 952px) {
    .container {
        width: var(--container-tablet);
    }
}
@media (min-width: 1200px) {
    .container {
        width: var(--container-desktop);
    }
}

.row {
    margin-right: calc(var(--gutter) / -2);
    margin-left: calc(var(--gutter) / -2);
}

/* Columns: xs = always, sm = from 952px, md = from 1200px. Only the widths the templates use. */
.col-xs-12,
.col-sm-2,
.col-sm-3,
.col-sm-6,
.col-sm-9,
.col-sm-10,
.col-sm-12,
.col-md-3,
.col-md-9 {
    position: relative;
    min-height: 1px;
    padding-right: calc(var(--gutter) / 2);
    padding-left: calc(var(--gutter) / 2);
}
.col-xs-12 {
    float: left;
    width: 100%;
}
@media (min-width: 952px) {
    .col-sm-2,
    .col-sm-3,
    .col-sm-6,
    .col-sm-9,
    .col-sm-10,
    .col-sm-12 {
        float: left;
    }
    .col-sm-2  { width: 16.66666667%; }
    .col-sm-3  { width: 25%; }
    .col-sm-6  { width: 50%; }
    .col-sm-9  { width: 75%; }
    .col-sm-10 { width: 83.33333333%; }
    .col-sm-12 { width: 100%; }
}
@media (min-width: 1200px) {
    .col-md-3,
    .col-md-9 {
        float: left;
    }
    .col-md-3 { width: 25%; }
    .col-md-9 { width: 75%; }
}

/* Contain floats */
.clearfix::before,
.clearfix::after,
.container::before,
.container::after,
.row::before,
.row::after,
.nav::before,
.nav::after,
.navbar::before,
.navbar::after,
.navbar-header::before,
.navbar-header::after,
.navbar-menu::before,
.navbar-menu::after,
.panel-body::before,
.panel-body::after {
    content: " ";
    display: table;
}
.clearfix::after,
.container::after,
.row::after,
.nav::after,
.navbar::after,
.navbar-header::after,
.navbar-menu::after,
.panel-body::after {
    clear: both;
}

.text-center {
    text-align: center;
}

.pull-right {
    float: right !important;
}

@media (max-width: 951px) {
    .hidden-xs {
        display: none !important;
    }
}


/* ==========================================================================
   Header and navigation
   ========================================================================== */

/* Fixed header bar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    padding-top: var(--header-padding-top);
    background: var(--color-bg);
    border: 1px solid transparent;
    border-width: 0 0 1px;
}
@media (max-width: 951px) {
    .navbar {
        height: var(--header-height-mobile);
        padding-top: 0;
    }
}

/* Logo row: "TIMOURE ET GROUP", and the menu button on mobile */
@media (max-width: 951px) {
    .container > .navbar-header {
        margin-right: calc(var(--gutter) / -2);
        margin-left: calc(var(--gutter) / -2);
    }
    header .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

header .navbar-header h1 {
    float: right;
    margin: 0 0 -0.3em;
    padding: 0;
    font-size: 1.1em;
    letter-spacing: -0.15em;
    color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
}
header .navbar-header h1 > span {
    display: inline-block;
    padding-bottom: 5px;
    font-size: 3.5em;
}
@media (max-width: 951px) {
    header .navbar-header h1 {
        float: none;
        margin: 0;
        min-width: 0;
        text-align: right;
    }
    header .navbar-header h1 > span {
        padding: 0;
        font-size: clamp(1.5em, 8vw, 2.2em);
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* Menu button (mobile only) */
.navbar-toggle {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    order: -1;
    margin: 0 0 0 0.5em;
    padding: 9px 10px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    touch-action: manipulation;
    user-select: none;
}
.navbar-toggle:hover,
.navbar-toggle:focus,
.navbar-toggle:active {
    background-color: var(--color-bg);
    border-color: var(--color-bg);
}
.navbar-toggle:focus {
    outline: 0;
}
@media (min-width: 952px) {
    .navbar-toggle {
        display: none;
    }
}

/* Menu panel: always visible from 952px. On mobile it is closed and slides open
   when teg.js sets .is-open (the grid row animates from 0 to the content height). */
.navbar-collapse {
    padding-right: calc(var(--gutter) / 2);
    padding-left: calc(var(--gutter) / 2);
    background: var(--color-bg);
    border-top: 1px solid transparent;
}
@media (max-width: 951px) {
    .navbar-collapse {
        display: grid;
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows var(--menu-duration) ease, visibility 0s linear var(--menu-duration);
    }
    .navbar-collapse.is-open {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows var(--menu-duration) ease, visibility 0s;
    }
    .navbar-menu {
        min-height: 0;
        overflow: hidden;
    }
    .navbar-collapse.is-open > .navbar-menu {
        max-height: var(--menu-max-height);
    }
    /* scrollable only once fully open (.is-opened, set by teg.js after the animation),
       otherwise a scrollbar shows while the panel is still growing */
    .navbar-collapse.is-opened > .navbar-menu {
        overflow-y: auto;
    }
    .container > .navbar-collapse {
        margin-right: calc(var(--gutter) / -2);
        margin-left: calc(var(--gutter) / -2);
    }
    header .navbar-collapse {
        border-bottom: 1px solid var(--color-black);
    }
}
@media (max-width: 951px) and (max-device-width: 480px) and (orientation: landscape) {
    .navbar-collapse.is-open > .navbar-menu {
        max-height: var(--menu-max-height-landscape);
    }
}
@media (min-width: 952px) {
    .navbar-collapse {
        width: auto;
        padding-right: 0;
        padding-left: 0;
        border-top: 0;
    }
}

/* Menu lists */
.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}
.nav > li {
    position: relative;
    display: block;
}
.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}
.nav > li > a:focus,
.nav > li > a:hover {
    text-decoration: none;
    background-color: var(--color-bg);
}
.navbar-nav {
    margin: 7.5px calc(var(--gutter) / -2);
}
.navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}
@media (min-width: 952px) {
    .navbar-nav {
        float: left;
        margin: 0;
    }
    .navbar-nav > li {
        float: left;
    }
}

/* Main navigation: E-SHOP, the sections, language switch */
header .main-nav {
    overflow: visible;
    white-space: nowrap;
    padding: 0 !important;
    margin: 4px -10px -5px 0 !important;
}
@media (min-width: 1200px) {
    header .main-nav {
        margin-right: -15px !important;
    }
}
header .main-nav > li {
    padding: 1px 4px 0 0;
}
@media (min-width: 1200px) {
    header .main-nav > li {
        padding: 1px 17px 0 0;
    }
}
header .main-nav > li.eshop-link a {
    margin-top: -4px;
    margin-bottom: 5px;
    padding: 5px 49px 0 0;
    font-size: var(--font-size-nav-eshop);
    font-weight: var(--font-weight-light);
    color: var(--color-ink);
}
header .main-nav > li.eshop-link a:hover {
    color: var(--color-hover);
}
header .main-nav > li > a {
    padding: 3px 1px;
    font-size: var(--font-size-nav);
    font-weight: var(--font-weight-light);
}
header .main-nav > li > a > span {
    display: inline-block;
    height: 20px;
    overflow-y: visible;
}
header .main-nav > li > a:hover > span {
    color: var(--color-hover);
}
header .main-nav > li:nth-child(even) > a {
    color: var(--color-ink) !important;
}
header .main-nav > li:nth-child(even) > a > span {
    border-color: var(--color-ink) !important;
}
/* current section (set by scrollspy) */
header .main-nav > li.active > a > span {
    border-bottom: 1px solid var(--color-ink);
}

/* Secondary navigation: Facebook and e-mail */
header .secondary-nav {
    padding: 0 2px !important;
}
@media (max-width: 951px) {
    header .secondary-nav {
        padding: 0 1em !important;
    }
}
header .secondary-nav > li {
    padding-left: 2em;
}
@media (max-width: 951px) {
    header .secondary-nav > li {
        float: left;
    }
}
header .secondary-nav > li > a {
    padding: 0;
    font-size: var(--font-size-nav-secondary);
    font-weight: var(--font-weight-light);
}
header .secondary-nav > li > a:hover > span {
    color: var(--color-hover);
}
header .secondary-nav > li > a.email {
    padding-right: 2px;
    color: var(--color-ink);
}
header .secondary-nav .icon-facebook {
    margin-right: 0.2em;
}


/* ==========================================================================
   Sections
   ========================================================================== */

/* Every section starts below the fixed header */
main .section-container {
    padding-top: var(--header-height);
}
@media (max-width: 951px) {
    main .section-container {
        padding-top: var(--header-height-mobile);
    }
}
main section {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 2em);
    overflow-x: hidden;
    border: 1px solid var(--color-black);
}
@media (max-width: 951px) {
    main section {
        min-height: calc(100vh - var(--header-height-mobile) - 2em);
        border: none;
    }
}
main section.section-in-list {
    margin-bottom: var(--section-gap);
}
main .section-content {
    margin: 2em 4.5em 4em;
    font-size: 1em;
    text-align: justify;
}
@media (max-width: 951px) {
    main .section-content {
        margin: 1em 0 2em;
    }
}
main h2,
main h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: var(--font-weight-light);
    letter-spacing: -0.05em;
}
@media (max-width: 951px) {
    main h2,
    main h3 {
        text-align: left;
    }
}
main a {
    font-weight: var(--font-weight-link);
    text-decoration: underline;
}

/* Panels (Facebook posts, PLAN.md step 4) */
.panel {
    margin-bottom: 20px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-panel-border);
    border-radius: 0;
    box-shadow: var(--shadow-panel);
}
.panel-body {
    padding: 15px;
}

/* Timoure et Group */
main .section-teg .slideshow-panel {
    margin-top: 2.5em;
}
main .section-teg dt,
main .section-teg dd {
    margin-bottom: 0.5em;
}
@media (min-width: 952px) {
    main .section-teg dt {
        float: left;
        clear: left;
        width: 5em;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    main .section-teg dd {
        margin-left: 6em;
    }
}

/* News (Facebook posts) */
main .section-news .facebook-posts-container .facebook-post img {
    display: block;
    max-width: 100%;
    height: auto;
}
@media (min-width: 952px) {
    main .section-news .facebook-posts-container .facebook-post-left {
        float: left !important;
        clear: left !important;
    }
    main .section-news .facebook-posts-container .facebook-post-right {
        float: right !important;
        clear: right !important;
    }
}

/* Club: newsletter button (links to the e-shop) */
main .section-club .club-newsletter {
    margin-top: 1.5em;
}
main .section-club .club-newsletter .button {
    display: inline-block;
    padding: 0.7em 1.6em;
    border: 1px solid var(--color-ink);
    color: var(--color-ink);
    font-size: var(--font-size-nav-secondary);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}
main .section-club .club-newsletter .button:hover,
main .section-club .club-newsletter .button:focus-visible {
    background-color: var(--color-ink);
    color: var(--color-bg);
}

/* Archive */
main .section-archive .archive-item .archive-image {
    width: 100%;
    margin-bottom: 30px;
}
main .section-archive .archive-item .archive-image.no-stretch {
    width: auto;
    max-width: 100%;
}
main .section-archive .archive-item .archive-video-container {
    background: var(--color-black);
}
main .section-archive .archive-item .archive-video-container .archive-video {
    display: block;
    width: 100%;
    margin: auto;
}

/* Collection */
main .section-collection .section-content {
    margin: 0 1em 2em;
}
@media (max-width: 951px) {
    main .section-collection .section-content {
        margin: 0 0.5em 2em;
    }
}
main .section-collection .section-content .collection-image-wrap {
    margin: 1.5em 1em;
}
@media (min-width: 1200px) {
    main .section-collection .section-content .collection-image-wrap {
        margin: 1.5em 2em;
    }
}
@media (max-width: 951px) {
    main .section-collection .section-content .collection-image-wrap {
        margin: 0.5em 0 1em;
    }
}
main .section-collection .section-content img {
    display: block;
    width: 100%;
    max-width: 1020px;
    margin: auto;
}

/* Catalogues */
main .section-catalogs .section-content {
    margin: 1em 0 2em;
}
@media (max-width: 951px) {
    main .section-catalogs .section-content {
        margin: 1em calc(var(--gutter) / -2) 2em;
    }
}
main .section-catalogs .catalogs-container .catalog {
    float: left;
    width: 151px;
    height: 240px;
    margin: 0 1em;
}
@media (min-width: 1200px) {
    main .section-catalogs .catalogs-container .catalog {
        width: 161px;
    }
}
@media (max-width: 951px) {
    main .section-catalogs .catalogs-container .catalog {
        margin: 0 0.5em;
    }
}
main .section-catalogs .catalogs-container .catalog a {
    font-weight: var(--font-weight-light);
    color: var(--color-ink);
    text-decoration: none;
}
main .section-catalogs .catalogs-container .catalog a:hover {
    color: var(--color-catalog-hover);
}
main .section-catalogs .catalogs-container .catalog .catalog-image {
    margin-left: 5px;
    border: 1px solid var(--color-catalog-border);
}
@media (min-width: 1200px) {
    main .section-catalogs .catalogs-container .catalog .catalog-image {
        margin-left: 8px;
    }
}
main .section-catalogs .catalogs-container .catalog .catalog-label {
    display: block;
    margin-left: 8px;
    padding-top: 5px;
    font-size: var(--font-size-catalog-label);
    text-align: left;
}
@media (min-width: 1200px) {
    main .section-catalogs .catalogs-container .catalog .catalog-label {
        margin-left: 12px;
    }
}

/* Shops */
main .section-shops .shop-container {
    margin-bottom: 1em;
}
main .section-shops .shop-container img {
    width: 100%;
}

/* Contact */
main .section-contact .contact-separator {
    padding-top: 3em;
}
main .section-contact .copyright {
    position: absolute;
    right: 2em;
    bottom: 1em;
    font-size: 0.8em;
}
@media (max-width: 951px) {
    main .section-contact .copyright {
        right: 0;
    }
}

/* Outlet */
main .section-outlet .outlet-image {
    width: 100%;
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    margin-bottom: 2em;
}
footer span {
    margin: 0 1em;
}


/* ==========================================================================
   Icons: inline SVG, same box as the former Font Awesome 4 glyphs
   ========================================================================== */

.icon {
    display: inline-block;
    width: 0.857142857em;          /* 1536 / 1792 */
    height: 1em;
    vertical-align: -0.142857143em; /* -256 / 1792 */
    fill: currentColor;
}


/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        color: var(--color-black) !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]::after {
        content: " (" attr(href) ")";
    }
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    h2,
    h3,
    p {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
    .navbar {
        display: none;
    }
}
