/*!
Theme Name: gyorki
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gyorki
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

gyorki is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

:root {
    line-height: 1.8;
    --primary-color: #c4000c;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    color: #51534a;

}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #404040;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    color: #262626;
    font-weight: 700;
    margin-top: 0;
}

h3 {
    font-size: 1.325rem;
    margin-bottom: 8px;
}

@media only screen and (min-width: 1400px) {
    h3 {
        font-size: 1.5rem;
    }
}

a:hover h3 {
    color: var(--primary-color);
    text-decoration: underline;
}

p {
    color: #51534A;
    margin: 0 0 1.5em;
    line-height: 1.8;

}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

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

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

a:hover,
a:focus,
a:active {
    color: #191970;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation--desktop {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}


.main-navigation--desktop ul {
    gap: 1rem;
    display: flex;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation--desktop ul > li {
    padding: .75rem;
}

/* =========================
   MOBILE NAV BASE
========================= */

/* Hide mobile elements on desktop */
.mobile-menu-toggle {
    display: none;
    margin: 0;
    margin-left: auto;
    cursor: pointer;
}

.mobile-menu-toggle {
    appearance: none;
    -webkit-appearance: none;

    background: none;
    border: none;
    padding: 0;


    font: inherit;
    color: inherit;
}

.main-navigation--mobile {
    display: none;
}

/* Mobile view */
@media (max-width: 1024px) {

    .main-navigation--desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation--mobile {
        display: block;
    }
}

/* =========================
   FULLSCREEN MENU
========================= */

.main-navigation--mobile {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    padding: 100px 24px 40px;
    overflow-y: auto;
}

.main-navigation--mobile.active {
    transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================
   MENU RESET (IMPORTANT FIX)
========================= */

#mobile-menu,
#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   TOP LEVEL
========================= */

#mobile-menu > li {
    border-bottom: 1px solid #eee;
}

#mobile-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* =========================
   SUBMENUS
========================= */

#mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 4px
}

#mobile-menu li.open > .sub-menu {
    max-height: 1000px;
}

/* Level 2 items */
#mobile-menu .sub-menu li {
    border-bottom: 1px solid #f3f3f3;
}

#mobile-menu .sub-menu li a {
    display: block;

    padding: 14px 0 14px 12px;
    font-size: 16px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
}

/* Level 3+ */
#mobile-menu .sub-menu .sub-menu li a {
    padding-left: 28px;
    font-size: 15px;
    color: #666;
}

/* Optional subtle marker instead of bullets */
#mobile-menu .sub-menu li a::before {
    content: "–";
    margin-right: 8px;
    color: #bbb;
}

/* =========================
   INTERACTION
========================= */

/* Arrow indicator */
#mobile-menu li.menu-item-has-children > a::after {
    /* content: "›";*/
    font-size: 18px;

    transition: transform 0.2s ease;

    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3L5 7L9 3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

#mobile-menu li.open > a::after {
    transform: rotate(-180deg);
}

/* Tap feedback */
#mobile-menu a:active {
    background: #f7f7f7;
}

/* mobile menu end */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 40px;
    height: 70px;
}

.header-logo {
    height: 40px;
}


.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
    display: block;
}

.post,
.page {
    margin: 0;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

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

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

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/*
-------------
	SLIDE
-------------
*/
#slide {
    max-height: 700px;
    background-color: var(--color-gray);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#slide:after {
    padding-top: 40%;
    display: block;
    content: '';
}

#slide_video {
    width: 100%;
    height: 100vh;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* fix */
#slide_video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100vh;
    height: revert;
    min-height: 900px;
}

#slide_video video,
#slide_video iframe {
    width: 100%;
    height: 100%;
    inset: 0;
    position: absolute;
    object-fit: cover;
    max-width: revert;
    min-width: 1600px;
}

/* fix */
#slide_video video,
#slide_video iframe {
    width: 100%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#slide_video .video_toggle {
    width: 50px;
    height: 50px;
    left: 50%;
    top: 50%;
    background: rgba(0 0 0 / 50%);
    border: 0;
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#slide_video .video_toggle::before {
    left: 50%;
    top: 50%;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 100%;
    position: absolute;
    content: "\275A\275A";
    transform: translate(-50%, -50%);
}

#slide_video .video_toggle.paused::before {
    font-size: 14px;
    content: "\25B6";
}

/* custom */
.element {
    margin-bottom: 60px;
}

@media only screen and (min-width: 1920px) {
    .element {
        margin-bottom: 120px;
    }
}

@media only screen and (min-width: 1400px) {
    .element {
        margin-bottom: 80px;
    }
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 10;
    background-color: #fff;
    width: 100%;
    border-bottom: 1px solid #fcfcfc;
    -webkit-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

.site-header a {
    text-decoration: none;
    color: #000;
}

body:not(.home) {
    padding-top: 70px;
}

.home h2 {
    font-size: 2rem;
}

section h2 {
    margin-bottom: 40px;
}

.home .site-header {
    background: rgba(0, 0, 0, .1);
    border-bottom: 1px solid transparent;
}


.home.is-scrolled .site-header {
    background-color: #fff;
}

.home .mobile-menu-toggle {
    color: #fff;
}

.home.is-scrolled .mobile-menu-toggle {
    color: #000;
}

.home .site-header .main-navigation--desktop .menu > .menu-item > a {
    color: #fff;
}

.site-header .main-navigation--desktop .menu > .menu-item > a {
    font-weight: 700;
    font-size: 1.125rem;
}


.home.is-scrolled .site-header .menu > .menu-item > a {
    color: #000;
}

.home.is-scrolled header {
    border-bottom: 1px solid #efefef;
}

.site-header .menu > .menu-item > a {
    position: relative;
}

.menu-item {
    position: relative;
}

.menu-item.has-children ul {
    display: none;
    position: absolute;
    background-color: #fff;
    left: 0;
    top: 100%;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, .1);
}

.menu-item.has-children:hover ul {
    display: block;
}

.site-header .main-navigation--desktop .menu > .menu-item > a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 1px;
    background-color: var(--primary-color);
    width: 100%;
    opacity: 0;
    transition: opacity 300ms ease-in;
}

.site-header .menu > .menu-item > a:hover::after {
    opacity: 1;
}

.hero {
    position: relative;
    color: white;
}

h1 {
    line-height: 1;
}

.hero h1 {
    font-size: 4.375rem;
    font-size: clamp(3rem, calc(2.4718rem + 2.2535vw), 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

@media only screen and (min-width: 1400px) {
    .page-header p {
        font-size: 1.5rem;
    }
    .page-header--simple h1 {
        font-size: clamp(3.5rem, calc(-1rem + 5vw), 5rem);
    }
    .page-header--split-hero h1 {
        font-size: clamp(3.5rem, calc(-1rem + 5vw), 5rem);
    }

    .hero h1 {
        font-size: clamp(4.5rem, calc(-0.75rem + 5.8333vw), 6.25rem)
    }
}

.hero .overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero .container {
    left: 8%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* buttons */
.buttons {
    display: flex;
    gap: 1rem;
}

.button {
    min-width: 100px;
    padding: 10px;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.button:link, .button:visited {
    color: #000;
    text-decoration: none;
}

.link-button {
    display: inline-flex;
    justify-content: center;
    color: #000;
    text-decoration: none;
    position: relative;
}


.link-button.link-button--primary {
    background: var(--primary-color);
    color: #fff;
}

.link-button.link-button--secondary {
    background: #fff;
    color: var(--primary-color);
}

.link-button.link-button--default {
    color: var(--primary-color);
    font-weight: 700;
}

.link-button--default:hover .link-button__text::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: -1px;
    background-color: currentColor;
}


.link-button--primary, .link-button--secondary {
    min-width: 100px;
    padding: 10px;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.button.button--primary {

}

.button.button--white {

}

.link-button__icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.link-button__text {
    position: relative;
}


.mega-menu {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    position: fixed;
    margin-top: 20px;
    left: 0;
    width: 100%;
    background: #fff;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 999;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
}

.mega-parent {
    position: relative;
}

.mega-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu:hover {
    opacity: 1;
    visibility: visible;
}

.mega-left {
    grid-column: 2 / 5;
    padding: 20px;
}

.mega-right {
    grid-column: 6 / 12;
    padding: 20px;
}

.mega-right ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.mega-menu .link-button {
    color: var(--primary-color);
}

.mega-menu .submenu-item {
    grid-column: span 2;
}

/* fp about */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.fp-section {

}

.fp-about__container-image {
    grid-column: span 4;
    position: relative;
}

.fp-about__container-image img {
    position: sticky;
    top: 100px;
}

.fp-about__container-content {
    grid-column: 6 / 12;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-self: start;
}

.fp-about__container-content p {
    grid-column: 1/-1;
}

.fp-about__container-content h2 {
    grid-column: 1/-1;
}

/* fp company overview */

.fp-company-overview h2 {
    grid-column: 2/12;
    text-align: center;
}


/* fp what we do */

.fp-what-we-do {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.fp-what-we-do .section__inner {
    grid-column: 2 / 12;
}

.fp-what-we-do .card-container {
    display: grid;
    gap: 40px 60px;
    grid-template-columns: repeat(3, 1fr);
}

.fp-what-we-do .card {
    text-decoration: none;
}

.fp-what-we-do .icon__wrapper {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    border: 1px solid #000000;
    margin-bottom: 8px;
}

.fp-what-we-do .card__icon {
    width: 50%;
    height: 50%;
    position: absolute;
    left: 25%;
    top: 25%;

}

/* feature block */
.feature-block {
    position: relative;
    padding-top: 20px;
    margin-bottom: 80px;
}

.feature-block__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.feature-block__content {
    background-color: #fff;
    position: relative;
    z-index: 3;
    padding: 1rem 3rem;
    margin-top: 20%;
    grid-column: 7/13;
}

/* posts */

/* pagination */
.posts__pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem 0;
}

.posts__pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.posts__pagination a,
.posts__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.45rem 0.85rem;
    border-radius: 999px;

    font-size: 0.9rem;
    text-decoration: none;

    color: var(--primary-color);
    background: #f2f6f9;
    border: 1px solid rgba(81, 83, 74, 0.22);
    transition: all 0.2s ease;
}

/* hover */
.posts__pagination a:hover {
    background: rgba(196, 0, 12, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* current page */
.posts__pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
}

/* prev/next emphasis */
.posts__pagination .prev,
.posts__pagination .next {
    color: #51534A;
    font-weight: 500;
}

.posts__pagination .prev:hover,
.posts__pagination .next:hover {
    color: var(--primary-color);
}

.posts__container {

}

.posts__container img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

.posts-feed--editorial .posts__container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 240px;
}

.posts__container > * {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
}

/* Title + More blocks */
.posts-feed h2 {
    margin: 0;
}

.posts-feed--editorial .posts__title,
.posts-feed--editorial .posts__more {
    display: flex;
    align-items: center;
    padding: 40px;
}

.posts-feed--editorial .posts__title {

}

.posts-feed--editorial .posts__more {
    justify-content: center;
}

.posts-feed .more__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Featured layout rules */
.posts-feed--editorial article:nth-of-type(1) {
    grid-row: span 2;
    grid-column: span 2;
}

.posts-feed--editorial article:nth-of-type(3) {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .posts-feed--editorial .posts__container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .posts-feed--editorial article:nth-of-type(2),
    .posts-feed--editorial article:nth-of-type(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .posts-feed--editorial .posts__container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}


/* grid */

.posts-feed--grid .posts__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.posts-feed--grid .posts__container article {
    aspect-ratio: 1 / 1;
}

/* full width blocks */
.posts-feed--grid .posts__title,
.posts-feed--grid .posts__more {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .posts-feed--grid .posts__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-feed--grid .posts__container {
        grid-template-columns: 1fr;
    }
}


.posts__container article {
    overflow: hidden;
}

.post__image-wrapper img {
    transition: all 300ms ease-in-out;
    will-change: transform;
}

.posts__container article:hover .post__image-wrapper img {
    transform: scale(1.10);
    transform-origin: center;
}

.post__image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.post__image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
}

.post__content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;

    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.post__content h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    margin-top: auto;
}

.post__content span {
    color: #fff;
    font-weight: 400;
    font-size: 1rem;
}

.posts__more {

}

.post__tags-container {

}

.post__tags-container > span {
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
}

/* footer */

.site-footer {
    background-color: #f2f6f9;
}

.site-footer__inner {
    height: 400px;
}

.site-footer__about,
.site-footer__links,
.site-footer__contact {

}

.footer__logo {
    margin-bottom: 24px;
}

.footer__contact {
    margin-bottom: 30px;
}

.site-footer__contact {
    background-color: var(--primary-color);
    padding-left: 80px;
    padding-right: 80px;
}

.site-footer__about {
    grid-column: 2 / 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__links {
    grid-column: 5 / 8;
}

.site-footer__contact {
    grid-column: 8 / 13;
}

#footer-menu {
    margin: 0;
    padding: 0;
}

#footer-menu .nav-buttons {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.site-footer__contact h2 {
    color: #fff;
}

.footer-column {
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer__bottom {
    background: #f2f6f9;
}

.footer__bottom .footer__inner {
    grid-column: 2/12;
}

#footer-bottom-menu {
    display: flex;
    gap: 1rem;
    list-style-type: none;
    padding: 12px 0;
    margin: 0;
}

#footer-bottom-menu a {
    color: var(--primary-color);
}

/* parent page */

.page-header--hero {
    aspect-ratio: 5 / 2;
    background-color: grey;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.page-header--simple {

}

.header__content {
    position: relative;
    padding: 2rem;
    color: #fff;
}

.page-header--hero h1 {
    margin: 0;
}

.page-header--hero img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
}

/* pages */
.page-header--simple .page-header__title {
    grid-column: 2 / 6;
}

.page-header--simple .page-header__content {
    grid-column: 7 / 12;
}

.page-header--simple {
    padding: 8% 0;
}

.page-header--split-hero {

}

.page-header--split-hero {
    min-height: clamp(20rem, 30vw, 50rem);
}

.page-header--split-hero .page-header__content {
    grid-column: 2 / 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header--split-hero .page-header__image-wrapper {
    grid-column: 7 / 13;
    position: relative;
}

.page-header--split-hero .page-header__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* cursor follower */

.pointer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 2rem;
    aspect-ratio: 1;
    background-color: rgb(0 0 0 / 25%);
    border: 1px solid transparent;
    border-radius: 100%;
    pointer-events: none;

    transform: translate3d(var(--mouseX, 0), var(--mouseY, 0), 0) translate(-50%, -50%);

    transition: 0.3s ease-out;
    transition-property: transform, width, border, background-color;
}

body:has(a:hover) .pointer {
    width: 5rem;
    background-color: transparent;
    border-color: rgb(0 0 0 / 50%);
}

@media (prefers-reduced-motion: reduce) {
    .pointer,
    #coordinates {
        display: none;
    }
}

@media (pointer: coarse) {
    .pointer,
    #coordinates {
        display: none;
    }
}

/* breadcrumbs */

.breadcrumbs {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    font-size: 14px;
    margin: 10px 0;
}
.breadcrumbs__inner {
    grid-column: 2 / 12;
}

.breadcrumbs a {
    text-decoration: none;
    color: #555;
}

.breadcrumbs span {
    color: #000;
}
