/*
Theme Name: Custom Portfolio Theme
Theme URI: https://github.com/Angelikibak/wordpress_portfolio_theme
Author: Your Name
Author URI: https://github.com/Angelikibak
Description: A custom WordPress theme for a portfolio.
Version: 1.0
Text Domain: custom-portfolio-theme
*/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #111;
}

body.home,
body.custom-portfolio-about-page,
body.custom-portfolio-contact-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.custom-portfolio-about-page,
body.custom-portfolio-contact-page {
  background: #f6f3ee;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------- */
/* Header / Footer Base      */
/* ------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 18px 24px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;

}

.site-footer {
  position: relative;
  width: 100%;
  z-index: 20;
  padding: 18px 24px;
  background: transparent;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;

}

body.home .site-footer,
body.custom-portfolio-about-page .site-footer,
body.custom-portfolio-contact-page .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 24px;
}

.site-header__name,
.site-header__nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.site-header__nav {
  display: flex;
  gap: 16px;
}

.site-footer__meta,
.site-footer__rights {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__meta {
  justify-self: start;
  white-space: nowrap;
}

.site-footer__rights {
  justify-self: end;
  max-width: 560px;
  text-align: right;
}

/* ------------------------- */
/* Homepage                  */
/* ------------------------- */

.homepage-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111;
}

.homepage-stage__background-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.homepage-stage__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.35s ease, opacity 0.35s ease;
}

.homepage-stage__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.homepage-stage__overlay {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px;
  pointer-events: none;
}

.homepage-stage__categories {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
  pointer-events: auto;
}

.homepage-stage__category-link {
  font-size: clamp(2.1rem, 6.4vw, 5.6rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.homepage-stage__category-link:hover,
.homepage-stage__category-link:focus,
.homepage-stage__category-link.is-active {
  color: rgba(255, 255, 255, 0.95);
}

/* ------------------------- */
/* Single Project            */
/* ------------------------- */

.single-project {
  min-height: 100vh;
  padding: 56px 24px 60px;
  background: #f6f3ee;
  color: #111;
}

.single-project__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.single-project__topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.single-project__back-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-project__article {
  width: 100%;
  max-width: none;
}

.single-project__header {
  margin-bottom: 28px;
}

.single-project__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-project__content {
  width: 100%;
}

.single-project__content > *:first-child {
  margin-top: 0;
}

.single-project__content > *:last-child {
  margin-bottom: 0;
}

.single-project__content p {
  max-width: 60ch;
}

.single-project__content img {
  display: block;
  width: 100%;
  height: auto;
}

.single-project__content .wp-block-image,
.single-project__content .wp-block-gallery,
.single-project__content .wp-block-columns {
  margin-top: 0;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .single-project {
    padding: 44px 18px 48px;
  }

  .single-project__topbar {
    margin-bottom: 16px;
  }

  .single-project__header {
    margin-bottom: 20px;
  }

  .single-project__content .wp-block-image,
  .single-project__content .wp-block-gallery,
  .single-project__content .wp-block-columns {
    margin-bottom: 16px;
  }
}

/* ------------------------- */
/* Category Archive          */
/* ------------------------- */

.category-archive {
  min-height: 100vh;
  padding: 90px 24px 104px;
  background: #f6f3ee;
  color: #111;
}

.category-archive__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}

.category-archive__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-archive__back-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-archive__grid {
  column-count: 3;
  column-gap: 20px;
}

.category-archive__item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.category-archive__item img {
  width: 100%;
  height: auto;
  display: block;
}

.category-archive__item-title {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  height:30px;
}

/* ------------------------- */
/* Generic Page Template     */
/* ------------------------- */

.site-page {
  min-height: 100vh;
  padding: 96px 24px 72px;
  background: #f6f3ee;
  color: #111;
}

.site-page__inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-page__article {
  max-width: 720px;
}

.site-page__header {
  margin-bottom: 28px;
}

.site-page__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-page__content {
  font-size: 1rem;
  line-height: 1.7;
}

.site-page__content > *:first-child {
  margin-top: 0;
}

.site-page__content img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ------------------------- */
/* About Fullscreen Page     */
/* ------------------------- */

.about-page-fullscreen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Kedebideri', Arial, Helvetica, sans-serif;
  background: #f6f3ee;
  color: #111;
}

.about-page-fullscreen__media {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-color: #222222;
}

.about-page-fullscreen__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-page-fullscreen__content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 72px 40px 56px;
  overflow: hidden;
}

.about-page-fullscreen__content-inner {
  width: 100%;
  max-width: 480px;
}

.about-page-fullscreen__title {
  margin: 0 0 28px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-page-fullscreen__text {
  font-size: 1rem;
  line-height: 1.8;
}

.about-page-fullscreen__text > *:first-child {
  margin-top: 0;
}

.about-page-fullscreen__text > *:last-child {
  margin-bottom: 0;
}

/* ------------------------- */
/* Responsive                */
/* ------------------------- */

@media (max-width: 1024px) {
  .category-archive__grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .about-page-fullscreen {
    grid-template-columns: 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
  }

  .about-page-fullscreen__media {
    height: 48%;
  }

  .about-page-fullscreen__content {
    height: 52%;
    min-height: 0;
    padding: 88px 24px 48px;
    overflow: visible;
  }

  .about-page-fullscreen__content-inner {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body.custom-portfolio-about-page,
  body.custom-portfolio-contact-page {
    height: auto;
    overflow: auto;
  }

  body.custom-portfolio-about-page .site-footer,
  body.custom-portfolio-contact-page .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    background: transparent;
  }

  .about-page-fullscreen,
  .contact-page-split {
    height: auto;
    overflow: visible;
  }

  .about-page-fullscreen__media,
  .contact-page-split__media {
    height: 46vh;
  }

  .about-page-fullscreen__content,
  .contact-page-split__content {
    height: auto;
    min-height: 0;
    padding: 78px 18px 56px;
  }

  .contact-page-split {
    background: #f6f3ee;
  }

  .contact-page-split__article {
    display: block;
  }

  .contact-page-split__media {
    height: 52vh;
    background: #111;
  }

  .contact-page-split__content {
    display: block;
    padding: 86px 24px 74px;
  }

  .homepage-stage__overlay {
    padding: 20px 18px;
    justify-content: center;
    align-items: center;
  }

  .homepage-stage__categories {
    align-items: flex-end;
    width: 100%;
    transform: translateY(20vh);
  }

  .homepage-stage__category-link {
    font-size: clamp(2.3rem, 12vw, 4.4rem);
  }

  .single-project {
    padding: 44px 18px 48px;
  }

  .site-footer {
    padding: 10px 18px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .site-footer__meta,
  .site-footer__rights {
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .site-footer__rights {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .category-archive {
    padding: 78px 18px 48px;
  }

  .category-archive__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .category-archive__grid {
    column-count: 1;
    column-gap: 0;
  }

  .site-page {
    padding: 82px 18px 48px;
  }
}

/* ------------------------- */
/* Contact Page Template     */
/* ------------------------- */

.contact-page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Kedebideri', Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
}

.contact-page-split__article {
  display: contents;
}

.contact-page-split__media {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.contact-page-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-page-split__content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 72px 40px 56px;
  background: #f6f3ee;
  color: #020202;
}

.contact-page-split__content-inner {
  width: 100%;
  max-width: 480px;
}

.contact-page-split__title {
  margin: 0 0 28px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-page-split__text {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-page-split__text > *:first-child {
  margin-top: 0;
}

.contact-page-split__text > *:last-child {
  margin-bottom: 0;
}

.contact-page-split__text a {
  color: #B75078;
  text-underline-offset: 0.15em;
}

@media (max-width: 900px) {
  .contact-page-split {
    grid-template-columns: 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
  }

  .contact-page-split__media {
    height: 48%;
  }

  .contact-page-split__content {
    height: 52%;
    min-height: 0;
    padding: 88px 24px 48px;
  }

  .contact-page-split__content-inner {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .contact-page-split {
    height: auto;
    background: #f6f3ee;
    overflow: visible;
  }

  .contact-page-split__article {
    display: block;
  }

  .contact-page-split__media {
    height: 52vh;
    background: #111;
  }

  .contact-page-split__content {
    display: block;
    height: auto;
    min-height: 0;
    padding: 86px 24px 74px;
  }
}
