/*
Theme Name: mczaja
Theme URI: https://opencollective.com/mczaja
Author: Bryan Hadaway, Borys Czajkowski - Przestrona.pl
Author URI: https://opencollective.com/mczaja#section-contributorsm https://www.przestrona.pl
Description: Custom made theme base on blankslate
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 9999
Requires at least: 5.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: mczaja

mczaja WordPress Theme 2011-2024
mczaja is distributed under the terms of the GNU GPL
*/

:root {
  --main: white;
  --main-alt: white;
  --second: black;
  --second-alt: #2f2f2f;

  --heading-size: 2.25rem;
  --subheading-size: 1.5rem;
  --p-size: 1.125rem;
  --p-small-size: 1rem;
  --p-xsmall-size: 0.875rem;

  --laptop-breakpoint: 1200px;
  --tablet-breakpoint: 768px;
  --mobile-breakpoint: 500px;

  --main-font: "Rubik", sans-serif;
  --second-font: "Mulish", sans-serif;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1;
}

a {
  text-decoration-skip-ink: auto;
}
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
button {
  outline: 0;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
q {
  display: inline;
  font-style: italic;
}
q:before {
  content: '"';
  font-style: normal;
}
q:after {
  content: '"';
  font-style: normal;
}
textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="password"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
input[type="search"] {
  -webkit-appearance: textfield;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  padding: 2px;
}
big {
  font-size: 120%;
}
small,
sup,
sub {
  font-size: 80%;
}
sup {
  vertical-align: super;
}
sub {
  vertical-align: sub;
}
dd {
  margin-left: 20px;
}
kbd,
tt {
  font-family: courier;
  font-size: 12px;
}
ins {
  text-decoration: underline;
}
del,
strike,
s {
  text-decoration: line-through;
}
dt {
  font-weight: bold;
}
address,
cite,
var {
  font-style: italic;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.sticky {
}
.bypostauthor {
}
.wp-caption {
}
.wp-caption-text {
}
.gallery-caption {
}
.alignright {
}
.alignleft {
}
.aligncenter {
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  word-break: normal;
}
.screen-reader-text:focus {
  background-color: #f7f7f7;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #007acc;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
.skip-link {
  left: -9999rem;
  top: 2.5rem;
  z-index: 999999999;
  text-decoration: underline;
}
.skip-link:focus {
  display: block;
  left: 6px;
  top: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: normal;
  padding: 15px 23px 14px;
  z-index: 100000;
  right: auto;
}
.visually-hidden:not(:focus):not(:active),
.form-allowed-tags:not(:focus):not(:active) {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

body {
  -webkit-font-smoothing: antialiased; /* Safari/Chrome */
  -moz-osx-font-smoothing: grayscale; /* Firefox */
  text-rendering: optimizeLegibility;
}

html {
  font-size: 16px;
}

@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  section {
    margin: 0 0.75rem !important;
  }
}

@media (max-width: 500px) {
  section {
    margin: 0 !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--main-font);
  font-weight: normal;
}
h1 {
  font-size: var(--heading-size);
  line-height: 120%;
}
h2,
h3,
h4 {
  font-size: var(--subheading-size);
}
p,
a {
  font-family: var(--second-font);
  font-size: var(--p-size);
  color: var(--second-alt);
  line-height: 140%;
  font-weight: 300;
}

a {
  text-decoration: none;
}

nav,
.menu > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}
nav,
.menu span {
  color: white !important;
}

header{
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #000000cf;
  backdrop-filter: blur(10px);
  width: 100%;
}
nav {
  position: relative;
  /* justify-content: space-between; */
  width: 100%;
  padding: 0 4rem;
  max-width: 1700px;
  margin: 0 auto;
  height: 70px;
}

nav a img{
  max-height: 65px !important;
  width: 100%;
  /* height: auto; */
  object-fit: cover;
	max-width: 110px;
}

.menu {
  margin-left: 4rem;
  position: relative;
  width: 100%;
}

.menu > ul {
  text-decoration: none;
  position: relative;
}
.menu li {
  padding: 1.5rem 1rem;
}

.menu li:last-of-type{
    position: absolute;
    top: 0;
    right: 0;
}

.menu .current_page_item {
  background-color: var(--main);
}
.menu li:hover {
	background-color: var(--main);
}
.menu .current_page_item span, .menu li:hover span {
  color: black !important;
}
#hamburger {
  display: none;
}

.shown {
  left: 0 !important;
}

@media (max-width: 1000px) {
  nav {
    padding: 1.5rem 2rem;
    justify-content: space-between;
  }

  .menu {
    /* display: none; */
    position: absolute; /* Make menu position absolute */
    top: 100%; /* Position it directly below the nav */
    left: -100%;
    width: 100%; /* Make it take the full width of the nav */
    margin: 0; /* Remove the left margin */
    background-color: var(--second-alt);
    padding: 2rem 0;
    transition: all .2s ease-in-out;
  }


	
  .menu > ul {
    display: flex; /* Or you can use grid depending on your layout */
    flex-direction: column; /* Stack items vertically */
    gap: 2rem;
    width: 100%; /* Ensure full width */
  }
  .menu li {
    width: 100%;
    display: block;
    padding-left: 3rem;
  }

  .menu a{
    font-size: var(--subheading-size);
  }

  .menu li:last-of-type{
    position: static;
  }

  .menu .current_page_item {
    padding: 1.5rem 3rem;
  }

  #hamburger {
    display: block;
  }

  #hamburger i{
    font-size: 1.5rem;
  }
}


.rounded{
  position: absolute;
  width: 15px;
  height: 15px;
  /* border: 1px solid black; */
  background-color: black;
  border-radius: 50%;
}

footer {
  width: 100%;
  background-color: var(--second-alt);
  padding: 1.5rem 3rem;
}

#footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

footer * {
  color: white;
}

footer a {
  text-decoration: none;
  font-size: var(--p-xsmall-size);
  font-weight: 300;
}

main#content {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 150px;
  display: flex;
  flex-direction: column;
}

section {
  margin: 0 2rem;
}

section:last-of-type {
  margin-bottom: 8rem !important;
}
section:first-of-type {
  margin-top: 4rem !important;
}
.btn {
  background-color: var(--second);
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 1.25rem;
  margin-top: 2rem;
  transition: .2s all ease-in-out;
}


.btn:hover{
  background-color: var(--second-alt);
}

.btn p {
  font-weight: 500;
  color: var(--main);
}

.btn i {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: var(--main);
}

/* TEMPLATE SPECIFIC STYLES */
#projekty h3 {
  color: var(--second-alt);
}
#projekty{
	display: flex;
	flex-direction: column;
	align-items: center;
}

.projects_container {
  /* display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(1.5rem + 2vw);
  margin-top: 3rem; */
}

.projects_container {
  display: grid;
 /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));*/
	  grid-template-columns: 1fr 1fr;
  gap: calc(1.5rem + 2vw);
  margin-top: 3rem;
}

.project_container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* max-width: 600px;
  min-width: 20px; */
  width: 100%;
  /* margin-left: 2rem; */
}

.project_container:hover{
    text-decoration: underline;
}

.project_container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* max-height: 400px; */
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}

@media (max-width: 1000px) {
  .projects_container{
    grid-template-columns: 1fr !important;
  }
  .project_container img{
    height: 100%;
  }
}


#oferta {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 5rem;
}

#oferta h3 {
  font-family: var(--second-font);
  line-height: 120%;
  margin-bottom: 1rem;
}
#oferta p {
  font-size: var(--p-small-size);
}

@media (max-width: 1200px) {
  #oferta {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 3rem;
  }
  #oferta h1 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #oferta {
    grid-template-columns: 1fr;
    /* justify-items: center; */
  }

  .offer_holder {
    max-width: 380px;
    /* text-align: center; */
  }
}

#o_mnie {
  display: grid;
  flex-direction: row;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

#o_mnie .img_wrapper {
  height: 100%;
	width: 100%;
  overflow: hidden;
  object-fit: cover;
}

#o_mnie p {
  column-count: 1;
  column-gap: 2.5rem;
  margin-top: 2rem;
}


#o_mnie img { 
	height: 100%;
	width: 100%;
  object-fit: cover; 
  display: block;
}

@media (max-width: 1200px) {
  .o_mnie_content p {
    column-count: 1 !important;
  }

}


@media (max-width: 1100px) {
  #o_mnie {
    grid-template-columns: 1fr;
  }

  #o_mnie .img_wrapper {
    width: 325px;
    max-width: none;
	  height: 400px;
    min-height: 0px !important;
	  object-fit: cover;
    flex: none;
  }

  #o_mnie img {
    height: 100%;
	width: 100%;
  }

  .o_mnie_content {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 500px) {
	#o_mnie .img_wrapper {
		width: 100%;
	}
}

#kontakt .link_group {
  margin-top: 2rem;
}

#kontakt a {
  font-size: var(--p-small-size);
  display: block;
  margin-top: 0.5rem;
}

/* WSPOLPRACA */
#offer {
  display: grid;
  grid-template-columns: 3fr 3fr 1.75fr;
  justify-items: stretch;
  gap: 5rem;
}

#offer img {
  object-fit: cover;
  width: 100%;
  max-height: 300px;
	aspect-ratio: 1/2;
}

#offer_details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
}

#offer_details h3 {
  font-family: var(--second-font);
  line-height: 120%;
  margin-bottom: 1rem;
}

#offer_details {
  font-size: var(--p-small-size);
}

@media (max-width: 1200px) {
  #offer {
    grid-template-columns: 1fr;
    /* grid-template-areas: "subheading image" "paragraph paragraph"; */
    gap: 4rem;
  }

  #offer img {
    /* grid-area: image;
        height: 30vw;
        width: 30vw;
        align-self: self-end;
        justify-self: end; */
    display: none;
  }

  #offer h3 {
    /* grid-area: subheading; */
  }

  #offer > p {
    /* grid-area: paragraph; */
  }
}

@media (max-width: 768px) {
  #offer_details {
    grid-template-columns: 1fr;
  }

  #offer_details .offer_holder {
    max-width: none;
  }
}

/* PROJECT */
#post h1, #post p{
    max-width: 600px;
}
#post p{
    margin-top: 1rem;
}

.image_grid {
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .image_grid img {
    width: 100%;
    height: 100%;      /* Changed from 100% to auto */
    object-fit: cover;
    display: block;
    aspect-ratio: 5 / 3;  /* Uncommented as it's useful for maintaining image proportions */
  }

  @media (max-width: 768px) {
    .image_grid{
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
  }

  .footer-nav{
    margin-top: 4rem;
  }

  .footer-nav, .post-navigation{
    background-color: transparent;
    padding: 0;
  }

  .post-navigation a{
    color: var(--second) !important;
    font-size: var(--p-size);
    font-weight: 500;
  }

  .post-navigation i{
    color: var(--second);
    
  }

  .nav-links{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  @media (max-width: 500px){
    .nav-links{
      flex-direction: column;
      gap: 2rem;
    }
  }

#container{
	min-height: calc(100vh - 70px - 82px);
}