﻿/*
Theme Name: Öreg Bence Ponyva
Theme URI: https://oregbenceponyva.hu
Description: Az Öreg Bence Ponyva weboldalának alapértelmezett sablonja.
Author: Digitalform
Author URI: https://digitalform.hu
Version: 1.0
*/

*{
margin: 0;
padding: 0;
border: 0;
flex-wrap: wrap;
text-decoration: none; 
}

@font-face { 
	font-family: 'Inter'; 
	src: url("fonts/inter-regular.woff2") format('woff2');
	font-weight: 400; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Inter'; 
	src: url("fonts/inter-italic.woff2") format('woff2');
	font-weight: 400; 
	font-style: italic;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Inter'; 
	src: url("fonts/inter-medium.woff2") format('woff2');
	font-weight: 500; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}
@font-face { 
	font-family: 'Inter'; 
	src: url("fonts/inter-bold.woff2") format('woff2');
	font-weight: 700; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Zilla Slab'; 
	src: url("fonts/zillaslab-regular.woff2") format('woff2');
	font-weight: 400; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

@font-face { 
	font-family: 'Zilla Slab'; 
	src: url("fonts/zillaslab-bold.woff2") format('woff2');
	font-weight: 700; 
	font-style: normal;
	font-stretch: normal;
	font-display: swap;
}

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

:root {
	--color-cream: #FBF6EC;
	--color-sand: #ECE0C6;
	--color-brown: #6E4A2C;
	--color-dark-brown: #2E1E12;

	--color-green: #4D6B3C;
	--color-red: #B13029;
	
	--font-size-h1: clamp(32px, 5vw, 64px);
	--font-size-h2: clamp(26px, 3.5vw, 48px);
	--font-size-h3: clamp(22px, 3vw, 28px);
}

body { margin: auto; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 400; color: var(--color-dark-brown); line-height: 150%; background: #666666; overflow-x: hidden; }
body.rwd-menu__opened { overflow-y: hidden !important; }

textarea, input, select, button { font-family: 'Inter', sans-serif; font-size: 16px; outline: none; }

img.alignleft { margin: 0 20px 5px 0; float: left; }
img.alignright { margin: 0 0 5px 20px; float: right; }
img.aligncenter { margin: 0 auto 20px auto; display: block; }

hr { width: 100%; margin: 20px 0; border-top: 2px solid var(--color-border); }
h1, h2, h3, h4 { font-weight: normal; }

.inner { max-width: 1280px; margin-left: auto; margin-right: auto; position: relative; }
.inner.inner-960 { max-width: 960px; }
.clear { clear: both; }

.sec-font, h3 { font-family: 'Zilla Slab', serif; }
.center { text-align: center; }
.uppercase { text-transform: uppercase; }

.vertical-middle { top: 50%; position: relative; -webkit-transform: translateY(-50%); transform: translateY(-50%); }
.hide { display: none !important; }
.red { color: var(--color-red); }

/* Button */
.button { width: fit-content; height: 50px !important; padding: 0 20px !important; font-size: 15px !important; font-weight: 700; text-decoration: none !important; color: #FFFFFF !important; line-height: 20px !important; background: var(--color-brown) !important; display: inline-flex; align-content: center; justify-content: center; position: relative; border-radius: 5px !important; cursor: pointer; -webkit-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.button:hover { opacity: 0.9; }

.button.button-outline { color: var(--color-brown) !important; background: transparent !important; border: 1px solid var(--color-brown); }
.button.button-outline:hover { color: #FFFFFF !important; background: var(--color-brown) !important; }

.button:disabled, 
.button:disabled:hover { color: rgba(255 255 255 / 30%) !important; opacity: 0.5; }

/* Animation */
.anim, :before, :after { -webkit-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }
.anim_cubic { -webkit-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }

.waypoint.fade_up { opacity: 0%; transform: translateY(50px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.waypoint.visible.fade_up { opacity: 100%; transform: translateY(0); }

/* Checkbox and radio */
input[type="checkbox"], 
input[type="radio"] { width: 24px; height: 24px; margin: -4px 4px 0 0 !important; padding: 0 !important; text-align: center !important; background-color: #FFFFFF; border: 1px solid rgba(0 0 0 / 0.3); clear: none; cursor: poInter; display: inline-block; line-height: 0; outline: 0; vertical-align: middle !important; -webkit-appearance: none; -webkit-box-shadow: none; box-shadow: none; -webkit-border-radius: 5px; border-radius: 5px; }
input[type="radio"] { -webkit-border-radius: 50%; border-radius: 50%; }

input[type="radio"]:checked:before { width: 14px; height: 14px; left: 4px; top: 4px; text-align: center; background: var(--color-dark); position: relative; border-radius: 8px; display: block; content: ''; }

input[type="checkbox"]:checked { background: var(--color-green); border-color: var(--color-green); }
input[type="checkbox"]:checked:before { width: 100%; height: 100%; left: 0; top: 0; color: #FFFFFF; position: relative; display: flex; align-items: center; justify-content: center; content: '✓'; }

/* Website */
#website { max-width: 1920px; margin: auto; background: var(--color-cream); }
body.post-type-archive-testimonial #website { background: var(--color-linen); }


/*
----------------------
	ROTATE WARNING
----------------------
*/
.rotate-warning { width: 100%; height: 100%; inset: 0; padding: 20px; font-size: 18px; line-height: 25px; text-align: center; background: var(--color-cream); display: none; align-items: center; align-content: center; justify-content: center; position: fixed; z-index: 100000; }
.rotate-warning img { width: auto; height: 60px; display: block; }
.rotate-warning .rotate-warning-img { width: 100%; margin-bottom: 20px; display: flex; justify-content: center; }
.rotate-warning .rotate-warning-text { max-width: 400px; margin: auto; }


/*
---------------------------
	WAYPOINT ANIMATIONS
---------------------------
*/
.animate-up { opacity: 0; transform: translateY(50px); transition: opacity 1s ease-out, transform 1s ease-out; }
.animate-up.in-view { opacity: 100%; transform: translateY(0); }


/*
------------------
	NAVIGATION
------------------
*/
#rwd_menu { width: 100%; top: 80px; right: 0; bottom: 0; padding: 50px 20px; background: var(--color-dark-brown); position: fixed; z-index: 1000; visibility: hidden; opacity: 0%; }
#rwd_menu label { width: 100%; margin-bottom: 5px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-sand); display: block; }

/* Section */
#rwd_menu .rwd-menu-section { margin-bottom: 50px; }

/* Menu */
#rwd_menu ul.menu { display: flex; flex-direction: column; gap: 10px; list-style: none; }
#rwd_menu ul.menu li a { font-size: 18px; text-decoration: none; color: #FFFFFF; line-height: 100%; display: block; }
#rwd_menu ul.menu li a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* Primary Menu */
#rwd_menu ul.menu.primary-menu li { margin: 0; border-bottom: 1px solid var(--color-border); }
#rwd_menu ul.menu.primary-menu li a { font-size: 32px; font-weight: 700; }

/* Useful info */
#rwd_menu ul.menu.useful-info { }

/* Action button */
#rwd_menu .button-contact { width: 100%; color: var(--color-sand) !important; border-color: var(--color-sand) !important; }
#rwd_menu .button-contact:hover { color: var(--color-dark-brown) !important; background: var(--color-sand) !important; }

/* RWD menu is opened */
body.rwd-menu__opened #rwd_menu { visibility: visible; opacity: 100%; }


/*
--------------
	HEADER
--------------
*/
#header { width: 100%; height: 100px; left: 0; top: 0; background: var(--color-cream); position: fixed; z-index: 1000; }
#header .header-wrapper { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* Logo */
#header .logo { position: relative; z-index: 2; }
#header .logo img { width: auto; height: 80px; display: block; }

/* Menu */
#header ul.menu { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; position: absolute; z-index: 1; list-style: none; }
#header ul.menu li a { height: 36px; padding: 0 15px; font-size: 16px; font-weight: 500; color: var(--color-brown); line-height: normal; display: flex; align-items: center; border-radius: 5px; }
#header ul.menu li a:hover { background: var(--color-sand); }
#header ul.menu li.current-menu-item a, 
#header ul.menu li.current-menu-parent a { color: #FFFFFF; background: var(--color-brown); }

/* Language switcher and Contact button */
#header .language-switcher__contact-button { display: flex; gap: 20px; position: relative; z-index: 2; }

/* Contact button */
#header .button-contact { position: relative; z-index: 2; }

/* Language switcher */
#header .language-switcher { width: 50px; height: 50px; position: relative; }
#header .language-switcher ul { width: 100%; height: 50px; left: 0; top: 0; padding-top: 48px; background: var(--color-cream); border: 1px solid var(--color-dark-brown); border-radius: 5px; position: absolute; overflow: hidden; }
#header .language-switcher ul li { width: 100%; height: 48px; display: none; }
#header .language-switcher ul li a { width: 100%; height: 100%; font-size: 15px; font-weight: 700; color: #000000; display: flex; align-items: center; justify-content: center; }
#header .language-switcher ul li:not(.active) a:hover { background: #FFFFFF; }

#header .language-switcher ul li.active { left: 0; top: 0; display: block !important; position: absolute; cursor: pointer; }

#header .language-switcher.is-open ul { height: auto; }
#header .language-switcher.is-open ul li { display: block !important; }

/* RWD button */
#header .rwd-button { height: 50px; padding: 0 15px 0 55px; font-size: 15px; font-weight: 700; color: #FFFFFF; background: var(--color-brown); align-items: center; position: relative; border-radius: 5px; cursor: pointer; }
#header .rwd-button .burg { width: 30px; top: calc(50% - 2px); left: 15px; position: absolute; }

#header .rwd-button .burg:before, 
#header .rwd-button .burg:after { width: 30px; height: 2px; background: #ffffff; position: absolute; content: ''; -webkit-transition: 0.2s; transition: 0.2s; }

#header .rwd-button .burg:before { top: calc(50% - 4px); left: 0; }
#header .rwd-button .burg:after { top: calc(50% + 4px); right: 0; }

body.rwd-menu__opened #header .rwd-button .burg:before { top: 50%; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
body.rwd-menu__opened #header .rwd-button .burg:after { top: 50%; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }

/* Is Scrolled */
body.is-scrolled #header { box-shadow: 0 18px 50px -24px rgba(0 0 0 / 0.4); }
body.page-template-ponyva-app #header { border-bottom: 1px solid var(--color-sand); }


/*
-------------
	SLIDE
-------------
*/
#slide { color: var(--color-cream); background: radial-gradient(120% 120% at 80% 0%, #4A3120 0%, #2F1F13 55%, #271810 100%); position: relative; z-index: 0; }
#slide::after { inset: 0; background-image: repeating-linear-gradient(90deg, #FFFFFF 0 1px, transparent 1px 7px); position: absolute; z-index: -1; opacity: 0.05; content: ''; pointer-events: none; }

#slide .slide-wrapper { padding-top: 50px; padding-bottom: 50px; display: flex; gap: 50px; }
#slide .slide-wrapper .block { flex: 1; }
#slide .slide-wrapper .block-left { padding: 100px 0; display: flex; align-content: center; }

#slide .slide-wrapper .block-left .subtitle { margin-bottom: 20px; padding-left: 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-sand); line-height: 100%; position: relative; }
#slide .slide-wrapper .block-left .subtitle::before { width: 30px; height: 2px; left: 0; top: calc(50% - 1px); background: var(--color-sand); position: absolute; content: ''; }
#slide .slide-wrapper .block-left .title { margin-bottom: 20px; font-size: var(--font-size-h1); font-weight: 700; line-height: 100%; }
#slide .slide-wrapper .block-left .title span { color: var(--color-sand); }
#slide .slide-wrapper .block-left .text { margin-bottom: 30px; }
#slide .slide-wrapper .block-left .action-buttons { display: flex; gap: 20px; }
#slide .slide-wrapper .block-left .action-buttons .button-outline { color: #FFFFFF !important; border-color: var(--color-sand) !important; }
#slide .slide-wrapper .block-left .action-buttons .button-outline:hover { background: rgba(255 255 255 / 0.05) !important; opacity: 1; }

#slide .slide-wrapper .block-right { position: relative; overflow: hidden; border-radius: 10px; }
#slide .slide-wrapper .block-right img { width: 100%; height: 100%; display: block; position: absolute; object-fit: cover; object-position: center; }


/*
----------------
	ABOUT US
----------------
*/
#aboutus { padding: 100px 0; }
#aboutus .aboutus-wrapper { display: flex; gap: 50px; }
#aboutus .aboutus-wrapper .block { flex: 1; }
#aboutus .aboutus-wrapper .block-left { position: relative; overflow: hidden; border-radius: 10px; }
#aboutus .aboutus-wrapper .block-left img { width: 100%; height: 100%; display: block; position: absolute; object-fit: cover; object-position: center; }

#aboutus .aboutus-wrapper .block-right { padding: 50px 100px 50px 0; display: flex; align-content: center; }
#aboutus .aboutus-wrapper .block-right .subtitle { width: 100%; margin-bottom: 20px; padding-left: 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-brown); line-height: 100%; position: relative; }
#aboutus .aboutus-wrapper .block-right .subtitle::before { width: 30px; height: 2px; left: 0; top: calc(50% - 1px); background: var(--color-brown); position: absolute; content: ''; }
#aboutus .aboutus-wrapper .block-right .title { margin-bottom: 20px; font-size: var(--font-size-h2); font-weight: 700; line-height: 100%; }
#aboutus .aboutus-wrapper .block-right .title span { color: var(--color-sand); }
#aboutus .aboutus-wrapper .block-right .text p { margin-bottom: 20px; }
#aboutus .aboutus-wrapper .block-right .text ul { list-style: none; }
#aboutus .aboutus-wrapper .block-right .text ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
#aboutus .aboutus-wrapper .block-right .text ul li:last-child { margin-bottom: 0; }
#aboutus .aboutus-wrapper .block-right .text ul li::before { width: 11px; height: 11px; left: 0; top: 6px; background: var(--color-brown); border-radius: 2px; flex: 0 0 11px; position: absolute; content: ''; transform: rotate(45deg); }


/*
----------------
	SERVICES
----------------
*/
#services { padding: 100px 0; background: var(--color-sand); }
#services .subtitle { margin-bottom: 20px; padding-left: 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-brown); line-height: 100%; position: relative; }
#services .subtitle::before { width: 30px; height: 2px; left: 0; top: calc(50% - 1px); background: var(--color-brown); position: absolute; content: ''; }
#services .title { margin-bottom: 20px; font-size: var(--font-size-h2); font-weight: 700; line-height: 100%; }
#services .text { margin-bottom: 30px; }

#services .services-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
#services .services-items .service-item { padding: 20px; background: var(--color-cream); border: 1px solid rgba(0 0 0 / 0.2); position: relative; overflow: hidden; border-radius: 10px; }
#services .services-items .service-item::before { width: 4px; height: 0; left: 0; top: 0; background: var(--color-brown); position: absolute; content: ''; }
#services .services-items .service-item h3 { width: 100%; font-size: 20px; font-weight: 700; color: var(--color-dark-brown); line-height: 100%; }
#services .services-items .service-item .mark { width: 34px; height: 34px; margin-bottom: 20px; background: var(--color-sand); border: 1px solid rgba(0 0 0 / 0.2); display: flex; align-items: center; justify-content: center; border-radius: 5px; }
#services .services-items .service-item .mark i { width: 12px; height: 12px; background: var(--color-brown); transform: rotate(45deg); border-radius: 2px; }

#services .services-items .service-item:hover { border-color: var(--color-brown); }
#services .services-items .service-item:hover::before { height: 100%; }

#services .cta { height: 140px; margin-top: 30px; padding: 0 50px; color: var(--color-cream); background: radial-gradient(120% 120% at 80% 0%, #4A3120 0%, #2F1F13 55%, #271810 100%); border-radius: 10px; box-shadow: 0 18px 50px -24px rgba(0 0 0 / 0.4); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#services .cta small { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-sand); }
#services .cta h3 { width: 100%; font-size: 24px; font-weight: 700; color: var(--color-cream); line-height: 100%; }


/*
------------------
	REFERENCES
------------------
*/
#references { padding: 100px 0; }
#references .subtitle { margin-bottom: 20px; padding-left: 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-brown); line-height: 100%; position: relative; }
#references .subtitle::before { width: 30px; height: 2px; left: 0; top: calc(50% - 1px); background: var(--color-brown); position: absolute; content: ''; }
#references .title { margin-bottom: 30px; font-size: var(--font-size-h2); font-weight: 700; line-height: 100%; }

.reference-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
body.home .reference-grid { margin-bottom: 50px; }

.reference-item { min-height: 200px; background: var(--color-sand); overflow: hidden; border-radius: 10px; }
.reference-item img { width: 100%; height: 100%; display: block; object-fit: cover; }

.reference-item--large { max-height: 720px; grid-column: span 3; grid-row: span 2; }
.reference-item--wide { max-height: 350px; grid-column: span 3; }
.reference-item--small { max-height: 350px; grid-column: span 2; }


/*
------------
	BLOG
------------
*/
#blog { padding: 100px 0; }
#blog .title { margin-bottom: 20px; font-size: var(--font-size-h2); font-weight: 700; text-align: center; line-height: 100%; }
#blog .text { margin-bottom: 50px; text-align: center; }

.blog-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.blog-list .blog-item { background: #FFFFFF; border: 1px solid var(--color-sand); border-radius: 10px; }
.blog-list .blog-item .thumbnail { display: block; position: relative; border-radius: 9px 9px 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.blog-list .blog-item .thumbnail img { width: 100%; height: 100%; display: block; position: absolute; object-fit: cover; object-position: center; }
.blog-list .blog-item .entry { padding: 20px 30px; }
.blog-list .blog-item .entry h3 a { font-size: var(--font-size-h3); font-weight: 700; text-decoration: none !important; color: #000000 !important; line-height: 100%; }
.blog-list .blog-item .entry h3 a:hover { text-decoration: underline !important; }
.blog-list .blog-item .entry .datetime { margin-bottom: 20px; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--color-dark-brown); line-height: 100%; display: flex; align-items: center; gap: 20px; }
.blog-list .blog-item .entry .excerpt { margin-top: 10px; font-size: 16px; line-height: 25px; }
.blog-list .blog-item .entry .excerpt p { margin-bottom: 0 !important; }


/*
----------------------
	BEFORE CONTENT
----------------------
*/
#before-content { height: 300px; color: var(--color-cream); background: radial-gradient(120% 120% at 80% 0%, #4A3120 0%, #2F1F13 55%, #271810 100%); position: relative; z-index: 0; }
#before-content::after { inset: 0; background-image: repeating-linear-gradient(90deg, #FFFFFF 0 1px, transparent 1px 7px); position: absolute; z-index: -1; opacity: 0.05; content: ''; pointer-events: none; }

#before-content h1 { font-size: var(--font-size-h1); font-weight: 700; color: var(--color-sand); line-height: 100%; }
#before-content h1.smaller { font-size: var(--font-size-h2); }

#before-content .before-content-wrapper { height: 100%; display: flex; }
#before-content .before-content-wrapper .block-left { width: 50%; padding-left: calc((100% - 1280px) / 2); padding-right: 50px; padding-bottom: 50px; display: flex; justify-content: end; flex-direction: column; gap: 20px; position: relative; }
#before-content .before-content-wrapper .block-left::before { width: 100%; left: 0; top: 50px; border-bottom: 1px solid var(--color-border); position: absolute; content: ''; }
#before-content .before-content-wrapper .block-right { width: 50%; position: relative; overflow: hidden; }
#before-content .before-content-wrapper .block-right img { width: 100%; height: 100%; display: block; position: absolute; object-fit: cover; object-position: center; }

.rank-math-breadcrumb { font-size: 14px; line-height: 20px; }
.rank-math-breadcrumb p { margin-bottom: 0 !important; }
.rank-math-breadcrumb a { text-decoration: underline; color: var(--color-dark); }
.rank-math-breadcrumb a:hover { color: var(--color-brown); }


/*
---------------
	CONTENT
---------------
*/
#container { padding-top: 100px; }

#content { padding: 50px 0; }
body.page-template-flexible-content #content { padding: 0; }

#content h1 { margin-bottom: 30px; font-size: var(--font-size-h2); line-height: 100%; }
#content h2 { margin-bottom: 20px; font-size: var(--font-size-h2); font-weight: 700; line-height: 100%; }
#content h3 { margin-bottom: 20px; font-size: var(--font-size-h3); font-weight: 700; line-height: 100%; }

#content p { margin-bottom: 30px; }
#content p img { max-width: 100%; height: auto; }
#content a { text-decoration: underline; color: var(--color-dark); }
#content a:hover { text-decoration: none; }

#content ol { margin-bottom: 30px; margin-left: 20px; }

#content ul { margin-bottom: 30px; list-style: none; }
#content ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
#content ul li:last-child { margin-bottom: 0; }
#content ul li::before { width: 11px; height: 11px; left: 0; top: 6px; background: var(--color-brown); border-radius: 2px; flex: 0 0 11px; position: absolute; content: ''; transform: rotate(45deg); }

#content table { margin-bottom: 30px; border-collapse: collapse; }
#content table thead tr th { padding: 10px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; text-align: left; line-height: 100%; border-bottom: 2px solid var(--color-sand); }
#content table tbody tr td { padding: 10px; font-size: 16px; line-height: 120%; border-bottom: 1px solid var(--color-sand); }

#content .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#content .table-responsive table { min-width: 700px; }

/* Contact */
#content .contact-wrapper { display: flex; gap: 50px; }
#content .contact-wrapper .block { flex: 1; }
#content .contact-wrapper .block.block-left { height: fit-content; top: 130px; position: sticky; }

#content .contact-meta-wrapper { display: flex; flex-direction: column; gap: 20px; }
#content .contact-meta-wrapper .meta { display: flex; align-items: center; gap: 15px; }
#content .contact-meta-wrapper .meta a { text-decoration: none !important; }
#content .contact-meta-wrapper .meta i { width: 50px; height: 50px; font-size: 14px; font-weight: 700; font-style: normal !important; color: #FFFFFF !important; background: var(--color-brown); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 5px; }
#content .contact-meta-wrapper .meta small { width: 100%; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 120%; display: block; }

/* Gallery */
#content .references-item { margin-bottom: 50px; padding-bottom: 50px; border-bottom: 2px solid var(--color-sand); }

#content .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
#content .gallery a { outline: 2px solid transparent; outline-offset: 2px; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
#content .gallery a:hover { outline-color: var(--color-brown); }
#content .gallery a img { width: 100%; height: 100%; display: block; position: absolute; object-fit: cover; object-position: center; }

/* Single Post */
#content .single-grid-layout { display: grid; grid-template-columns: 280px minmax(0, 960px); gap: 70px; }
#content .single-grid-layout .grid-aside { height: fit-content; top: 120px; position: sticky; }
#content .single-grid-layout .grid-aside .share { margin-top: 20px; display: flex; gap: 10px; }
#content .single-grid-layout .grid-aside .share label { width: 100%; font-size: 16px; font-weight: 700; }

#content .single-grid-layout .grid-aside .share a, 
#content .single-grid-layout .grid-aside .share button { width: 50px; height: 50px; text-decoration: none !important; color: #FFFFFF !important; background: var(--color-brown); border: none !important; display: flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; -webkit-transition: 0.2s; transition: 0.2s; }
#content .single-grid-layout .grid-aside .share a:hover, 
#content .single-grid-layout .grid-aside .share button:hover { background: var(--color-dark-brown); }

#content .single-grid-layout .grid-aside .share i { font-size: 16px; }

/* Reading Time */
#content .reading-time { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--color-dark-brown); line-height: 1; letter-spacing: 0.02em; background-color: var(--color-sand); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
#content .reading-time::before { width: 7px; height: 7px; background: var(--color-dark-brown); border-radius: 50%; content: ""; }

#content p.success { width: 100%; padding: 10px; font-size: 14px; font-weight: 700; line-height: 120%; background-color: color-mix(in srgb, var(--color-green) 5%, #FFFFFF 95%); border: 1px solid var(--color-green); border-radius: 5px; } 
#content p.error { padding: 10px; font-size: 14px; font-weight: 700; line-height: 120%; background-color: color-mix(in srgb, var(--color-red) 10%, #FFFFFF 90%); border: 1px solid var(--color-red); border-radius: 5px; } 


/*
--------------
	FOOTER
--------------
*/
#footer { font-size: 16px; color: var(--color-sand); background: radial-gradient(120% 120% at 80% 0%, #4A3120 0%, #2F1F13 55%, #271810 100%); } 
#footer h4 { margin-bottom: 20px; font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 100%; letter-spacing: 2px; } 
#footer ul { display: flex; flex-direction: column; gap: 10px; list-style: none; } 
#footer a { color: var(--color-sand); } 
#footer a:hover { text-decoration: underline; color: #FFFFFF; } 

#footer .logo { margin-bottom: 20px; display: inline-flex; } 
#footer .logo img { width: auto; max-width: 200px; height: 100px; display: block; } 

#footer .footer-info { max-width: 80%; font-size: 15px; } 

#footer .contact { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; } 
#footer .contact span { width: 34px; height: 34px; font-size: 13px; font-weight: 700; background: rgba(230 199 154 / 0.1); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 5px; } 

/* Footer top */
#footer .footer-top { padding: 70px 0 50px; }
#footer .footer-top .footer-top-wrapper { display: flex; gap: 50px; }
#footer .footer-top .footer-top-wrapper .block { flex: 1; }

/* Footer bottom */
#footer .footer-bottom a { text-decoration: underline; color: #FFFFFF; } 
#footer .footer-bottom a:hover { text-decoration: none; } 
#footer .footer-bottom .footer-bottom-wrapper { padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255 255 255 / 0.2); display: flex; align-items: center; justify-content: space-between; }


/*
-----------------
	SCROLL UP
-----------------
*/
#scroll_up { width: 50px; height: 50px; right: 20px; bottom: 30px; background: var(--color-orange) url(images/icon-arrow-up-white.svg) no-repeat center / auto 20px; display: none; position: fixed; z-index: 10; cursor: pointer; border-radius: 50%; }
#scroll_up:hover { background-color: var(--color-dark); }


/*
------------
	FORM
------------
*/
.form-row { width: 100%; margin-bottom: 0 !important; position: relative; }
.form-row.form-row-first { width: calc(50% - 10px); }
.form-row.form-row-last { width: calc(50% - 10px); }

.form-row p { margin-bottom: 0 !important; display: flex; }
.form-row br { display: none !important; }
.form-row label { width: 100%; margin-bottom: 5px; font-size: 13px; font-weight: 700; display: block; }

.form-row .wpcf7-list-item { margin: 0; position: relative; }
.form-row .wpcf7-list-item label { top: auto; padding-left: 35px; line-height: 20px; display: block; position: relative; }
.form-row .wpcf7-list-item input[type=checkbox] { left: 0; top: 1px; position: absolute; }

.form-row select, 
.form-row textarea, 
.form-row input[type=tel], 
.form-row input[type=text], 
.form-row input[type=email], 
.form-row input[type=password] { width: 100%; height: 50px; padding-left: 10px; font-size: 16px; background: var(--color-cream); border: 1px solid rgba(0 0 0 / 0.3); outline: 2px solid transparent; outline-offset: 2px; border-radius: 5px; flex: 1; }

.form-row select:focus, 
.form-row textarea:focus, 
.form-row input[type=tel]:focus, 
.form-row input[type=text]:focus, 
.form-row input[type=email]:focus, 
.form-row input[type=password]:focus { background: #FFFFFF; outline-color: var(--color-brown); }

.form-row textarea { min-height: 150px; padding: 10px; resize: vertical; }

.wpcf7 { padding: 50px; background: var(--color-sand); border: 1px solid rgba(0 0 0 / 0.2); border-radius: 10px; box-shadow: 0 18px 50px -24px rgba(0 0 0 / 0.4); }
.wpcf7-form { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.wpcf7-form h3 { width: 100%; margin-bottom: 0 !important; }

.wpcf7-acceptance label { font-weight: 400; text-transform: none; }
.wpcf7-form-control-wrap { flex: 1; }
.wpcf7-list-item label { width: 100%; padding-top: 0; font-size: 14px; }


/*
-------------
	LOGIN
-------------
*/
#login-wrap { position: relative; }
#login-wrap .preloader { width: 100%; height: 100%; left: 0; top: 0; background: rgba(251 246 236 / 80%) url(images/infinite-spinner.svg) no-repeat center / auto 50px; display: none; position: absolute; z-index: 10; }

#df-user-login { padding: 30px 20px; background: var(--color-sand); border: 1px solid rgba(0 0 0 / 0.2); border-radius: 10px; }
#df-user-login .button { width: 100%; }


/*
-------------------
	RWD DESIGN
-------------------
*/
@media only screen and (max-width: 1280px) { 

	/* DEFAULT */
	.p-l-20 { padding-left: 20px; }
	.p-r-20 { padding-right: 20px; }
	
	/* BLOG */
	.blog-list { grid-template-columns: 1fr 1fr; gap: 20px; }
	body.home .blog-list .blog-item:nth-child(3) { display: none; }
	
	/* BEFORE CONTENT */
	#before-content .before-content-wrapper .block-left { padding-left: 20px; }
}

@media only screen and (max-width: 960px) { 

	/* DISPLAY: None */
	.hide-in-960 { display: none !important; }
	
	/* DISPLAY: Block */
	.show-in-960 { display: block !important; }
	.show-in-960__flex { display: flex !important; }
	
	/* HEADER */
	#header { height: 80px; }
	
	/* HEADER: Logo */
	#header .logo img { height: 60px !important; }
	
	/* SLIDE */
	#slide .slide-wrapper .block { flex: auto; }
	#slide .slide-wrapper .block-left { padding: 0; }
	#slide .slide-wrapper .block-right { aspect-ratio: 16 / 9; }
	
	/* ABOUT US */
	#aboutus { padding: 50px 0; }
	#aboutus .aboutus-wrapper .block { flex: auto; }
	#aboutus .aboutus-wrapper .block-left { aspect-ratio: 16 / 9; order: 2; }
	#aboutus .aboutus-wrapper .block-right { padding: 0; order: 1; }
	
	/* SERVICES */
	#services { padding: 50px 0; }
	#services .services-items { grid-template-columns: repeat(3, 1fr); }
	#services .cta { padding: 0 30px; }
	
	/* REFERENCES */
	#references { padding: 50px 0; }
	
	/* BLOG */
	#blog { padding: 50px 0; }
	.blog-list .blog-item .entry { padding: 20px; }

	/* BEFORE CONTENT */
	#before-content { height: auto; }
	#before-content .before-content-wrapper .block-left { width: 100%; padding: 30px 20px; }
	
	/* CONTENT */
	#container { padding-top: 80px; }
	#content { padding: 30px 0; }
	
	/* CONTENT: Contact */
	#content .contact-wrapper .block { flex: auto; width: 100%; }
	#content .contact-wrapper .block.block-left { top: auto; position: static; }
	
	/* CONTENT: Gallery */
	#content .gallery { grid-template-columns: repeat(3, 1fr); }
	
	/* CONTENT */
	#content .single-grid-layout { grid-template-columns: 1fr; gap: 40px; }
	#content .single-grid-layout .grid-aside { height: auto; top: auto; position: static; }
	
	/* FOOTER */
	#footer .footer-info { max-width: none; } 
	
	/* FOOTER: Footer top */
	#footer .footer-top { padding: 50px 0; }
	#footer .footer-top .footer-top-wrapper .block.block-left__logo { flex: auto; }
}

/* LANDSCAPE – max 960px */
@media only screen and (max-width: 960px) and (orientation: landscape) {
	
	/* ROTATE WARNING */
	.rotate-warning { display: flex; }
}

@media only screen and (max-width: 768px) { 

	/* SERVICES */
	#services .services-items { grid-template-columns: repeat(2, 1fr); }
	#services .cta { height: auto; padding: 30px; }
	
	/* REFERENCES */
	.reference-grid { grid-template-columns: repeat(2, 1fr); }
	
	.reference-item,
	.reference-item--large,
	.reference-item--wide,
	.reference-item--small { max-height: none; aspect-ratio: 4 / 3; grid-column: span 1; grid-row: span 1; }
	
	/* CONTENT: Gallery */
	#content .gallery { grid-template-columns: repeat(2, 1fr); }
	
	/* FORM */
	.form-row.form-row-first, 
	.form-row.form-row-last { width: 100%; }

	.wpcf7 { padding: 30px 20px; }
}

@media only screen and (max-width: 640px) { 

	/* DISPLAY: None */
	.hide-in-640 { display: none !important; }
	
	/* SERVICES */
	#services .services-items { grid-template-columns: 1fr; }
	
	/* REFERENCES */
	.reference-grid { grid-template-columns: 1fr; }
	
	/* BLOG */
	.blog-list { grid-template-columns: 1fr; }
	body.home .blog-list .blog-item:nth-child(3) { display: block; }
	
	/* FOOTER: Footer top */
	#footer .footer-top .footer-top-wrapper .block { flex: auto; width: 100%; }
	
	/* FORM */
	.wpcf7 .button { width: 100% }
}
