/* 
  Description: Stilna datoteka za spletno stran: Marko Delbello Ocepek | fotograf
  Author: Erika Pečjak
  Created: 2025-05-04
  Version: 1.0
  Notes: Uporablja tipografiji 'Playfair' in 'Quicksand', s sivo barvno shemo.
*/


/* basic elements */
:root {
  --text-dark: #000000;
  --text-light: #999999; 
  --extra-light: #f2f2f2;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Playfair-bold", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
}

.section__header {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--header-font);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  color: var(--white);
  background-color: var(--text-dark);
  transition: 0.3s;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
}

.btn:hover {
  background-color: var(--text-light);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
}


/* navigation */
nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--extra-light);
  height: 6rem;
}

.nav__logo img {
  max-width: 125px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
  margin-right: 1.0rem;
  background-color: var(--text-dark);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
}


/* header */
header {
background-color: var(--extra-light);
}

.header__container {
  display: grid;
  padding-block: 0;
  overflow: hidden;
}

.header__content {
  padding-block: 0 5rem;
}

.header__content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--header-font);
  color: var(--text-dark);
  text-align: center;
}

.header__content h2 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
  color: var(--text-light);
  text-align: center;
}

.header__btn {
  text-align: center;
}


/* about */
.about__container {
  display: grid;
  gap: 2rem;
  overflow: hidden;
}

.about__image img {
  max-width: 500px;
  margin-inline: auto;
}

.about__content .section__header {
  margin-bottom: 2rem;
}

.about__content p {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
}

.about__btn {
  margin-top: 4rem;
  text-align: center;
}


/* blog */
.blog__container .section__header {
  margin-bottom: 4rem;
}

.blog__grid {
  margin-bottom: 4rem;
  display: grid;
  gap: 3rem 2rem;
}

.blog__card{
  background-color: var(--extra-light);
  padding: 0.5rem;
}

.blog__card h5 {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: right;
}

.blog__card h4 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--text-dark);
  font-family: var(--header-font);
}

.blog__card p {
  line-height: 1.75rem;
  color: var(--text-light);
}

.blog__btn {
  text-align: center;
}


/* contact */
.contact {
  background-color: var(--extra-light);
}

.contact__container {
  padding-block: 0;
  display: grid;
  gap: 2rem;
  margin-top: 8rem;
}

.contact__content {
  padding-block: 5rem;
}

.contact__content .section__header {
  margin-bottom: 2rem;
}

.contact__content p {
  margin-bottom: 2rem;
  line-height: 1.75rem;
  color: var(--text-light);
  text-align: center;
}

.contact__content input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
  font-size: 1rem;
  color: var(--text-light);
  background-color: transparent;
  font-family: Quicksand;
}

.contact__content textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
  font-size: 1rem;
  color: var(--text-light);
  background-color: transparent;
  font-family: Quicksand;
}

.contact__content .btn {
  margin-top: 2rem;
}

.contact__image {
  display: none;
}

.link {
  color: var(--text-light);
  text-decoration: underline;
}


/* footer */
.footer__container {
  display: grid;
  gap: 4rem;
}

.footer__col .section__header {
  margin-inline-start: unset;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

.footer__col p {
  line-height: 1.75rem;
  color: var(--text-light);
}

.footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer__socials a {
  padding: 5px 9px;
  font-size: 1.25rem;
  color: var(--text-light);
  border-radius: 100%;
}

.footer__socials a:hover {
  background-color: var(--extra-light);
}

.footer__bar {
  padding: 1rem;
  color: var(--white);
  text-align: center;
  background-color: var(--text-dark);
}

@media (width > 540px) {
  .header__content h1 {
    font-size: 4.75rem;
  }

  .input__row {
    display: flex;
    gap: 2rem;
  }

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

@media (width > 768px) {
  nav {
    position: absolute;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.0rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 0;
    width: fit-content;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
  }

  .header__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    isolation: isolate;
  }

  .header__image {
    grid-area: 1/2/2/3;
    position: relative;
    height: 100%;
  }

  .header__image img {
    top: 0;
    right: 0;
    width: unset;
    max-height: 790px;
    height: 100%;
    margin-left: 1rem;
    z-index: -1;
  }

  .header__content {
    padding-block: 10rem;
  }

  .header__content :is(h1, h2, .header__btn) {
    text-align: left;
  }

  .header__content h1 {
    font-size: 5rem;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__content {
    max-width: 450px;
    margin-inline: auto;
  }

  .about__content .section__header {
    margin-inline-start: unset;
  }

  .about__content :is(p, .about__btn) {
    text-align: left;
  }

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

  .blog__btn {
    text-align: left;
  }

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

  .contact__content .section__header {
    margin-inline-start: unset;
  }

  .contact__content p {
    text-align: left;
  }

  .contact__image {
    display: flex;
    position: relative;
    isolation: isolate;
  }

  .contact__image img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
  
}
@media (width > 1024px) {
  .header__content {
    padding-block: 15rem 12rem;
  }
}

.container {
  padding: 4rem 1rem;
  max-width: var(--max-width);
  margin: auto;
}

.filter__btn ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 2rem;
}

.filter__btn li {
  cursor: pointer;
  padding: 1rem 2rem;
  color: var(--white);
  background-color: var(--text-dark);
  transition: 0.3s;
  font-weight: 500;
}

.filter__btn .active {
  background-color: var(--text-light);
  color: var(--white);
}

.portfolio__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.portfolio__gallery .item {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  cursor: pointer;
  transition: transform 0.3s;
}

.portfolio__gallery .item:hover {
  transform: scale(1.03);
}

.item img {
  width: 100%;
  height: 250px; 
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  color: white;
  font-size: 2rem;
  position: absolute;
  cursor: pointer;
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox .prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .portfolio__gallery .item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .portfolio__gallery .item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* faq */
.faq {
  max-width: 700px;
  margin: auto;
}

.faq__item {
  border-bottom: 1px solid var(--extra-light);
  margin-bottom: 1rem;
}

.question {
  background-color: var(--extra-light);
  padding: 1.7rem;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.question.active::after {
  content: "-";
  transform: rotate(180deg);
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1rem;
  color: var(--text-light);
}

.answer.open {
  padding: 1rem 1rem 4rem 1rem;
}

.btn__link {
  color: var(--white);
  font-family: "Quicksand", sans-serif;
}


/* video */
.video__container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
}

.video__container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}