/*
Theme Name: Vir
Theme URI: https://www.kobisite.tk
Author: Kobi Site
Author URI: https://kobisite.tk
Description: Vir Framework
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: vir
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --theme-container-width: 1200px;
    --theme-content-width: 1200px;

    --color-primary: #6b4a32;
    --color-secondary: #8a674a;
    --color-accent: #c59a6d;

    --color-text: #333333;
    --color-muted: #777777;
    --color-heading: #222222;

    --color-white: #ffffff;
    --color-black: #000000;

    --color-border: #e5e5e5;

    --topbar-bg: #6b4a32;
    --topbar-text: #ffffff;

    --header-bg: #ffffff;
    --header-text: #222222;

    --footer-bg: #222222;
    --footer-text: #ffffff;

    --body-bg: #ffffff;

    --font-body: Arial, Helvetica, sans-serif;
    --font-heading: Arial, Helvetica, sans-serif;

    --transition-fast: 180ms ease;
    --transition-normal: 300ms ease;
}


/* ---------------------------------------
   RESET
--------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--body-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}


/* ---------------------------------------
   GLOBAL CONTAINER
--------------------------------------- */

.container {
    width: min(
        calc(100% - 40px),
        var(--theme-container-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------
   FULL WIDTH SECTIONS
--------------------------------------- */

.section {
    width: 100%;
}

.section-inner {
    width: min(
        calc(100% - 40px),
        var(--theme-container-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------
   TYPOGRAPHY
--------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.25;
}

p {
    margin-top: 0;
}


/* ---------------------------------------
   ACCESSIBILITY
--------------------------------------- */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ---------------------------------------
   WORDPRESS ALIGNMENTS
--------------------------------------- */

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------
   CLEARFIX
--------------------------------------- */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ---------------------------------------
   RESPONSIVE
--------------------------------------- */

@media (max-width: 768px) {

    .container,
    .section-inner {
        width: min(
            calc(100% - 30px),
            var(--theme-container-width)
        );
    }

}

@media (max-width: 480px) {

    .container,
    .section-inner {
        width: calc(100% - 24px);
    }

}