/*
Theme Name: TarifaIT_Main
Author: MD (tarifa)
Author URI: https://tarifait.pl/
Description: Theme for tarifait main page.
Version: 1.0
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.0
License: Copyright
License URI: http://tarifait.pl/
Text Domain: tarifait
*/

:root {
    --primary: red;
    --secondary: #f0f0f0;
    --tertiary: #89aac7;

    --surface: #f0f0f0;
    --on-surface: black;
    --dark-surface: #3b2f27;
    --on-dark-surface: white;

    --font-heading: 'Montserrat';
    --font-body: 'Open Sans';
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body), sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), sans-serif;
    line-height: 150%;
}

a {
    text-decoration: none;
    color: var(--tertiary);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-tertiary {
    color: var(--tertiary);
}

.bg-surface {
    background-color: var(--surface);
}

.bg-dark-surface {
    background-color: var(--dark-surface);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-5 {
    gap: 20px;
}

.gap-x-5 {
    column-gap: 20px;
}

.gap-y-10 {
    row-gap: 40px;
}

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 48px;
}


.section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dark-section {
    color: var(--on-dark-surface);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.material-symbols-outlined {
    vertical-align: text-bottom;
    font-size: 1.3rem;
    font-variation-settings: 'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.first-section {
    height: 33vw;
    min-height: fit-content;
    justify-content: end;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9)), url('./assets/first-section.jpg') bottom;
    background-blend-mode: darken;
    isolation: isolate;
    background-size: cover;
}

.third-section img,
.section__card img {
    width: 100%;
    object-fit: cover;
}

@media (max-device-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}
