/*!
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.
 */
@font-face {
    font-family: BebasNeue;
    src: url('fonts/BebasNeue-Regular.ttf');
    font-display: block;
}

@font-face {
    font-family: Oswald;
    src: url('fonts/Oswald-Regular.ttf');
    font-display: block;
}

@font-face {
    font-family: SourceSans3;
    src: url('fonts/SourceSans3-Regular.ttf');
    font-display: block;
}

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

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

}

html, body {
    height: 100%;
    margin: 0;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 60px);
}

main {
    flex: 1;
}


/* 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: 'SourceSans3', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    color: #051c39;
    font-family: "BebasNeue";
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 500;
    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.5rem;
    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-navigation__top {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
}

/* 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 {
    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: var(--primary-color);
}

/* =========================
   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: 60px;
}

.header-logo {
    height: 40px;
}

.footer-logo {
    height: 50px;
}

.mobile-menu-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_video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: black;
}

#slide_video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    height: 90vh;
}
.hero-image {
    background: url("https://gyorki.effixdev.com/wp-content/uploads/2026/07/gyorki-01.jpg") center/cover no-repeat;
    position: absolute;
    inset: 0;
}

.hero__inside {
    height: 100%;
    position: absolute;
}

.hero .decoration-1, .page-header__image-wrapper .decoration-1 {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 20%;
    height: 30px;
    background-color: #01213a;
}

.hero .decoration-2, .page-header__image-wrapper .decoration-2 {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 22%;
    height: 30px;
    background-color: #8bb4c6;
}

.hero-video {
   /* opacity: 0;
    transition: opacity 1s ease; */
}

.hero-video.is-visible {
    opacity: 1;
}

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

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

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

.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: 60px;
}

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: 0.875rem;
}


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

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

.home .header-logo--normal {
    display: none;
}

.header-logo--white {
    display: none;
}

.home .header-logo--white {
    display: block;
}

.home.is-scrolled .header-logo--normal {
    display: block;
}

.home.is-scrolled .header-logo--white {
    display: none;
}

.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;
}

.wp-singular h1 {
    font-size: 2.5rem;
}

.hero h1 {
    font-size: 4.375rem;
    font-size: clamp(1.6rem, calc(1.4rem + 2vw), 4.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

.hero .overlay, .page-header__image-wrapper .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%);
}

/* single post */
.page-header__info {
    padding-bottom: 12px;
    grid-column: 2 / -2;
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #262626;
    font-size: 0.875rem;
}

.post-category {
    font-weight: 700;
    padding: 6px 12px;
    color: #fff;
    background: #000;
}


.page-header__image-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
}

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

.single__content .section__inner, .post-navigation__inner {
    grid-column: 3 / -3;
}

/* 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;

    margin-right: 8px;
}

.link-button__text {
    position: relative;
}

.link-button__icon svg {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.link-button:hover .link-button__icon svg {
    transform: translateX(5px);
    opacity: 0.9;
}

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

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

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.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: 20px 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: 8 / -1;
    position: relative;
}

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

.fp-about__container-content {
    grid-column: 2 / 7;
    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/-2;
    text-align: center;
}

/* related projects */
.related-projects-top {

}

.related-projects-top h2 {
    grid-column: 2 / -2;
}

/* fp what we do */

.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__content, .segment__inside {
    border-left: 8px solid #8bb4c6;
    padding-left: 1rem;
}

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

.fp-what-we-do .icon__wrapper {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    border: 2px solid #051c39;
    margin-bottom: 20px;
}

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

}

/* feature block */
.category-page .feature-block {
    margin-bottom: 100px;
}

.feature-block {
    position: relative;
    padding-top: 20px;
}

.feature-block__decoration-wrapper {
    grid-column: span 6;
    position: relative;
}

.feature-block .parallax-wrapper {
    height: 100%;
}

.home .feature-block {
    margin-bottom: 80px;
}

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

.feature-block__content {
    background-color: #fff;
    position: relative;
    z-index: 3;
    padding: 1rem 0;
    margin-top: 60px;
    margin-bottom: 60px;
    grid-column: 8 / 12;
}

.feature-block .decoration-1 {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 30%;
    height: 30px;
    background-color: #01213a;
}

.feature-block .decoration-2 {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 24%;
    height: 30px;
    background-color: #8bb4c6;
}

/* parent page */
.parent-page-content, .contact-page-content {
    margin-top: 120px;
    margin-bottom: 120px;
}

.parent-page-content .section__inner {
    grid-column: 3 / -3;
}

.parent-page__children-container {
    padding-bottom: 80px;
}

.parent-page__children-container {

}

.children-container__inner {
    display: grid;
    grid-column: 3 / -3;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    overflow: hidden;
}

.children-container__inner h2 {
    margin-bottom: 6px;
}

.parent-page__children-container .feature-block {

}

/* 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(8n + 1) {
    grid-row: span 2;
    grid-column: span 2;
}

.posts-feed--editorial article:nth-of-type(8n + 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 */

.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);
    }

    .posts__more {
        grid-column: span 2;
    }
}

@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;
    position: relative;
}

.posts__container .post__content {
    align-items: flex-start;
}

.posts__container article h2::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 2px;
    background-color: #fff;
    width: 100%;
    opacity: 0;
    transition: opacity 300ms ease-in;
}

.posts__container article:hover h2::after {
    opacity: 1;
}

.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;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.footer__contact .link-button {
    margin-top: 20px;
}
.footer__contact a {
    text-decoration: none;
    color: #51534a;
}
.footer__contact strong {
    display: inline-block; margin-right: 6px;
}

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

.site-footer__about {
    grid-column: 2 / 6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
}

.site-footer__links {
    grid-column: 6 / 9;
    padding-right: 20px;
}

.site-footer__contact {
    grid-column: 9 / 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);
}

/* contact */

.contact-cards .section__inner {
    grid-column: 2 / -2;
}

.contact-page-content .section__inner {
    grid-column: 4 / -4;
}

/* parent page */

.page-header--hero {
    height: clamp(20rem, 30vw, 50rem);
    background-color: grey;
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
}

.page-header--hero {

}

.page-header--simple {

}

.page-header--hero .page-header__content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.page-header--hero h1 {
    color: #fff;
    grid-column: 3 / span 5;
    padding-bottom: 80px;
}

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

/* 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--simple .page-header__image-wrapper {
    position: relative;
    height: clamp(30rem, 5rem + 25vw, 40rem);
    grid-column: 1 / -1;
}

.category-page .page-header {
    margin-bottom: 120px;
}

.blog.paged .page-header {
    display: none;
}

.blog.paged .posts-feed {
    margin-top: 60px;
}

.page-header--split-hero {

}

.page-header--split-hero {

}

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

.page-header--split-hero .page-header__image-wrapper {
    grid-column: 7 / 13;
    position: relative;
    height: clamp(20rem, 30vw, 50rem);
    min-height: 100%;
}

.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: 6px 0;
    padding: 0 40px;
    color: #A8A9A4;
}

.breadcrumbs__inner {
    grid-column: 1 / -1;
}

.breadcrumbs a {
    text-decoration: none;
    color: #A8A9A4;
    transition: color 300ms ease-in;
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 1px;
    background-color: var(--primary-color);
    width: 100%;
    opacity: 0;
    transition: opacity 300ms ease-in;
}

.breadcrumbs a:hover::after {
    opacity: 1;
}

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


.breadcrumbs span {
    color: #A8A9A4;
}

/* cards */
.card-grid {
    display: grid;
}

.card-grid.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
}

.card-grid .card {
    padding: 2.5rem;
    border: 1px solid #dcdddb;
}

.card-grid .card__title {
    font-size: 2rem;
}
.card-grid .card__addition {
    margin-bottom: 12px;
    display: block;
}

/* fp segments */

.fp-segments .section__inner {
    grid-column: 3 / -3;
}

.segments__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.segment {
    display: grid;
    grid-template-columns: 1fr;
}

.segment__excerpt p {
    margin-bottom: 0;
}

.segment__image {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.segment__image-wrapper {
    position: relative;
    grid-column: 1;
}
.fp-segments .segment__image-wrapper {
    aspect-ratio: 3 / 2;

}

.segment__content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.segment__content .link-button {
    margin-left: 1rem;
    margin-top: 1rem;
}

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

.fp-segments .segment__content {
    grid-column: 5 / -1;
}

.fp-segments .segment__image-wrapper {
    grid-column: span 3;
}

/* category segments */
.category-page__segments-image img {
    display: block;
    width: 100%;
}

.category-page__segments-image {
    grid-column: 2 / 6;
    position: sticky; top: 120px;
}

.category-page__segments-container {
    grid-column: 7 / 12;
}

.category-page .segment__content {
    margin-bottom: 40px;
    margin-top: 40px;
}


/* parent segment */

.segment {
    gap: 40px;
}

.segment__content {
    padding-right: 10%;
}

.fp-segments .segment__inside, .parent-page .segment__inside  {
    margin-left: calc(15% + 8px);
}
.category-page .segment__inside {
    margin-left: 2rem;
}
.segment__content .link-button {
    margin-left: calc(15% + 1rem + 8px);
}

@media (min-width: 1001px) {
    .fp-segments .segment__inside, .category-page .segment__inside {
        margin-left: 0;
    }

    .fp-segments .segment__content .link-button {
        margin-left: 1rem;
    }

}

@media only screen and (min-width: 1400px) {

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

    .intro p {
        font-size: 1.2rem;
    }

    h1 {
        font-size: clamp(3.5rem, calc(-1rem + 5vw), 5rem);
    }

    .wp-singular h1 {
        font-size: clamp(3.5rem, calc(-1rem + 5vw), 5rem);
    }

    .page-header--split-hero h1 {
        font-size: clamp(1.5rem, calc(4vw), 3rem);
    }

    .hero h1 {

    }

    .page-header__info {
        font-size: 1rem;
    }

}
.children-container__inner .parallax-wrapper {
    grid-column: 1 / -1;
    aspect-ratio: 2/ 1;
}
@media (max-width: 1600px) {

    .children-container__inner .feature-block__content {
        grid-column: 1 / -1;
        margin-left: 40px;
    }
    
}

@media (max-width: 1400px) {
    .mega-menu .submenu-item {
        grid-column: span 3;
    }

    .mega-right ul {
        gap: 20px 10px;
    }

    .mega-left {
        grid-column: 1 / 5;
    }

    .mega-right {
        grid-column: 6 / -1;
    }

    .contact-page-content .section__inner {
        grid-column: 3 / -3;
    }

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


}

@media (max-width: 1200px) {
    p {
        margin: 0 0 1.5rem;
    }

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

    .fp-about__container-content {
        grid-column: 1 / -1;
        padding: 40px;
    }

    .fp-what-we-do .card-container {
        grid-template-columns: 1fr 1fr;
    }

    .fp-segments .section__inner {
        grid-column: 1 / -1;
    }

    .fp-segments .segment__content {
        grid-column: 5 / -2;
    }

    .fp-segments h2 {
        padding: 40px;
        margin: 0;
    }


    .contact-page-content .section__inner, .parent-page-content .section__inner {
        grid-column: 1 / -1;
        padding: 40px;
    }

    .parent-page-content, .contact-page-content {
        margin-top: 60px;
        margin-bottom: 60px;
    }

}

@media (max-width: 1000px) {
    .category-page__segments-image img {
        display: block;
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .category-page__segments-image {
        position: revert; top: revert;
    }
    
    .category-page__segments-image, .category-page__segments-container {
        grid-column: 1 / -1;
    }

    .segment__image-wrapper {
        grid-column: 1 / -1 !important;
        aspect-ratio: revert;
    }

    .segment__content {
        grid-column: 1 / -1 !important;
    }

    .site-footer__inner {
        height: revert;
    }

    .site-footer__about {
        grid-column: 2 / span 5;
    }

    .site-footer__links {
        grid-column: span 5;
    }

    .site-footer__contact {
        grid-column: 1 / -1;
    }

    .card-grid.card-grid--3 {
        grid-template-columns: 1fr;
    }

    .card-grid .card__title {
        font-size: 1.5rem;
    }

    .card-grid .card {
        padding: 1.5rem;
    }

    .page-header--simple .page-header__title, .page-header--simple .page-header__content {
        grid-column: 2 / -2;
    }

    .page-header--split-hero .page-header__content, .page-header--split-hero .page-header__image-wrapper {
        grid-column: 2 / -2;
    }

    .single__content .section__inner {
        grid-column: 2 / -2;
    }

    .children-container__inner {
        grid-column: -1 / 1;
        grid-template-columns: 1fr;
    }

    .feature-block__content {
        grid-column: 1 / -1;
        margin-left: 40px;
    }
    .feature-block {
        margin-bottom: 0 !important;
    }

    .feature-block__decoration-wrapper {
        grid-column: 1 / -1;
        aspect-ratio: 2/ 1;
    }
}

@media (max-width: 600px) {
    .fp-what-we-do .section__inner {
        grid-column: 1 / -1;
        padding: 20px;
    }

    .fp-about__container-content {
        padding: 20px;
    }

    .hero .container {
        left: 0;
        padding: 1rem;
    }

    .hero .buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-what-we-do .card-container {
        grid-template-columns: 1fr;
    }

    .feature-block__content {
        margin-left: 20px;
        padding: 1.5rem;
    }

    .site-footer__about {
        grid-column: 2 / -2;
    }

    .site-footer__links {
        grid-column: 2 / -2;
    }

    .footer-column {
        padding: 20px;
    }

    .contact-page-content .section__inner {
        padding: 20px;
    }

    .parent-page-content, .contact-page-content {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .page-header--simple .page-header__title, .page-header--simple .page-header__content {
        grid-column: 1 / -1;
        padding: 0 20px;
    }

    .page-header--split-hero .page-header__content, .page-header--split-hero .page-header__image-wrapper {
        grid-column: 1 / -1;
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-page-content .section__inner, .parent-page-content .section__inner {
        padding: 0 20px;
    }

    .page-header__info {
        grid-column: 1 / -1;
        padding: 10px 20px;
    }

    .breadcrumbs {
        padding: 0 20px;
    }

    .single__content .section__inner {
        grid-column: 1 / -1;
        padding: 20px;
    }

    .page-header--hero h1 {
        grid-column: 2 / -1;
        padding: 40px 1rem;
    }
}

/* scroll anim */
@media (min-width: 768px) {
    [data-anim] {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
        will-change: transform, opacity;
    }

    /* activated state */
    [data-anim][data-visible="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Ensure the container hides the moving image edges */
.parallax-wrapper {
    overflow: hidden;
}

/* Give the image a slight scale-up so it has room to slide */
.parallax {
    position: absolute; /* 👈 key change */
    top: -20%; /* 👈 creates space ABOVE */
    height: 140%; /* 👈 creates space BELOW */
    width: 100%;
    object-fit: cover;
    will-change: transform; /* Boosts performance/smoothness */
}


.diagonal-cut--bottom-left {
    width: 100%;
    display: block;
    clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            15% 100%,
            0 70%
    );
}

.diagonal-cut--bottom-right {
    width: 100%;
    display: block;
    clip-path: polygon(
            0 0,
            100% 0,
            100% 70%,
            85% 100%,
            0 100%
    );
}
.diagonal-cut--bottom-right-soft {
    width: 100%;
    display: block;
    clip-path: polygon(
            0 0,
            100% 0,
            100% 85%,
            85% 100%,
            0 100%
    );
}

.post-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.post-navigation__inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation__prev,
.post-navigation__next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
}

.post-navigation__next {
    text-align: right;
    margin-left: auto;
}

.post-navigation .label {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.post-navigation .title {
    font-weight: 700;
    font-size: 1.1rem;
}

.post-navigation a,
.post-navigation a:visited,
.post-navigation a:hover,
.post-navigation a:active {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .post-navigation__inner {
        flex-direction: column;
        grid-column: 2 / -2;
    }

    .post-navigation__next {
        margin-left: 0;
        text-align: left;
    }
}
a.facebook-button {
    display: flex;
    gap: 0.5rem;
    color: #fff;
    align-items: center;
    text-decoration: none;
}
.facebook-button img {
    width: 36px;
    height: 36px;
}
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.error-404 .page-header {
    margin-bottom: 20px;
}

.error-404 .page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.error-404 .page-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.back-home {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
}

.back-home:hover {
    background: #333;
    transform: translateY(-1px);
}