/* ============================================================
   Portfolio CSS – Project 35 Architecture and Urbanism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&family=Roboto:wght@700&display=swap');

/* === Design Tokens === */
:root {
  --pf-navy:     #0f2940;
  --pf-dark:     #0c2133;
  --pf-darkest:  #04121f;
  --pf-blue:     #20496e;
  --pf-num:      #04121f;
  --pf-white:    #ffffff;
  --pf-light:    #e2e8e5;
  --pf-gray:     #949a97;
  --pf-divider:  #d9e6fb;
  --pf-font:     'Manrope', sans-serif;
  --pf-font-logo:'Roboto', sans-serif;
  --pf-radius:   20px;
  --pf-radius-lg:22px;
  --pf-grid-gap-v: 0px;
  --pf-grid-offset: 150px;
  
  /* Shadows */
  --pf-shadow-sm: 0px 2.5px 2.5px rgba(0, 0, 0, 0.25);
  --pf-shadow-md: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--pf-font);
  color: var(--pf-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

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

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

button { cursor: pointer; border: none; background: none; font-family: var(--pf-font); }

/* ============================================================
   NAVBAR
   ============================================================ */
.pf-nav {
  display: flex;
  align-items: center;
  padding: 10px 62px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 0 0 var(--pf-radius-lg) var(--pf-radius-lg);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.pf-nav.scrolled {
  background-color: rgba(201, 220, 248, 0.25) !important;
}

.pf-nav.scrolled .pf-nav-line {
  background-color: var(--pf-blue);
}

.pf-nav-logo img {
  width: 110px;
  height: auto;
}

.pf-nav-line {
  flex: 1;
  height: 2px;
  background-color: var(--pf-blue);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.pf-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 90px;
}

/* ============================================================
   HERO
   ============================================================ */
.pf-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 900px;
  background-color: var(--pf-white);
  overflow: hidden;
  box-shadow: var(--pf-shadow-sm), var(--pf-shadow-md);
  border-radius: 0 0 var(--pf-radius-lg) var(--pf-radius-lg);
  margin-bottom: 24px;
}

.pf-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 540px 40px 60px 90px;
  gap: 0px;
}

.pf-hero-title {
  font-family: var(--pf-font);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 400;
  color: var(--pf-navy);
  line-height: 1.05;
  margin-bottom: 4px;
}

.pf-hero-subtitle {
  font-family: var(--pf-font);
  font-size: 30px;
  font-weight: 400;
  color: var(--pf-blue);
}

.pf-hero-images {
  display: flex;
  gap: 20px;
  padding: 20px 90px 80px 20px;
}

.pf-hero-img {
  flex: 1;
  width: 0;
  min-width: 0;
  object-fit: cover;
  border-radius: var(--pf-radius);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.pf-divider {
  border: none;
  border-top: 1px solid var(--pf-divider);
  width: 88%;
  margin: 0 auto;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.pf-breadcrumb {
  font-family: var(--pf-font);
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 40px;
}

.pf-breadcrumb-current {
  color: var(--pf-blue);
}

/* ============================================================
   PORTFOLIO OVERVIEW
   ============================================================ */
.pf-overview {
  padding: 70px 0 80px;
  background-color: var(--pf-white);
  box-shadow: var(--pf-shadow-sm), var(--pf-shadow-md);
  border-radius: 0 0 var(--pf-radius-lg) var(--pf-radius-lg);
  margin-bottom: 24px;
}

.pf-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  row-gap: var(--pf-grid-gap-v);
}

.pf-overview-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Right-column items (even) are offset downward */
.pf-overview-item:nth-child(even) {
  padding-top: var(--pf-grid-offset);
}

.pf-item-num {
  font-family: var(--pf-font);
  font-size: 26px;
  font-weight: 600;
  color: var(--pf-num);
  display: block;
  margin-bottom: 24px;
}

.pf-item-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--pf-radius);
  margin-bottom: 24px;
  transition: transform 0.4s ease;
}

.pf-overview-item:hover .pf-item-img {
  transform: scale(1.02);
}

.pf-item-name {
  font-family: var(--pf-font);
  font-size: 40px;
  font-weight: 700;
  color: var(--pf-navy);
  margin-bottom: 0;
}

/* ============================================================
   PROJECT SECTION – SHARED
   ============================================================ */
.pf-project-section {
  padding: 70px 0 80px;
  background-color: var(--pf-white);
  box-shadow: var(--pf-shadow-sm), var(--pf-shadow-md);
  border-radius: 0 0 var(--pf-radius-lg) var(--pf-radius-lg);
  margin-bottom: 24px;
}

.pf-project-section.pf-no-card {
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}

.pf-project-info {
  margin-bottom: 20px;
}

.pf-project-info.pf-info-right {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  width: fit-content;
  margin-right: 10px;
}

.pf-project-info.pf-info-right .pf-location-row {
  justify-content: flex-start;
}

.pf-project-title {
  font-family: var(--pf-font);
  font-size: 50px;
  font-weight: 700;
  color: var(--pf-dark);
  line-height: 0.9;
  margin-bottom: 6px;
}

.pf-project-subtitle {
  font-family: var(--pf-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--pf-dark);
  margin-bottom: 5px;
}

.pf-location-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pf-location-pin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pf-location-text {
  font-family: var(--pf-font);
  font-size: 10px;
  font-weight: 400;
  color: var(--pf-dark);
}

.pf-project-desc {
  font-family: var(--pf-font);
  font-size: 19px;
  font-weight: 500;
  color: var(--pf-dark);
  line-height: 1.65;
}

/* Image helpers */
.pf-img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--pf-radius);
  display: block;
}

.pf-img-xl   { height: 500px; }
.pf-img-lg   { height: 370px; }
.pf-img-md   { height: 260px; }
.pf-img-sm   { height: 240px; }

.pf-img-std {
  width: 445px;
  height: 242px;
}

/* Indented image (smaller + shifted right, used in Akanni/Anthos left col) */
.pf-img-indent {
  margin-left: 26%;
  width: 74%;
}

/* Koinon narrow image (same left edge, just narrower) */
.pf-img-narrow {
  width: 76%;
}

/* ============================================================
   LAYOUT: IDION  (left=info+sm+sm | right=lg+sm+text)
   ============================================================ */
.pf-layout-idion {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-idion-left{
  margin-top: 50px;
}

.pf-idion-left > .pf-img:not(:last-child) { margin-bottom: 16px; }

.pf-idion-right > .pf-img { margin-bottom: 16px; }
.pf-idion-right > .pf-project-desc { margin-top: 20px; }

/* ============================================================
   LAYOUT: AKANNI  (left=info+sm+sm-indent | right=lg+text)
   ============================================================ */

   .pf-akanni-left {
    margin-top: 20px;
   }

   .pf-layout-akanni {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-akanni-left > .pf-img { margin-bottom: 16px; }
.pf-akanni-right > .pf-img { margin-bottom: 24px; }

/* ============================================================
   LAYOUT: MERAKI  (left=lg+sm | right=info+sm+text)
   ============================================================ */

   .pf-meraki-right{
    margin-top: 30px;
   }
   
.pf-layout-meraki {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-meraki-left > .pf-img { margin-bottom: 16px; }
.pf-meraki-right > .pf-img { margin-bottom: 20px; }
.pf-meraki-right > .pf-project-desc { margin-top: 0; }

/* ============================================================
   LAYOUT: KOINON  (left=lg+text | right=info+sm+sm-narrow)
   ============================================================ */

.pf-koinon-right{
  margin-top: 20px;
}  
 
.pf-layout-koinon {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-koinon-left > .pf-img { margin-bottom: 24px; }
.pf-koinon-right > .pf-img { margin-bottom: 16px; }

/* ============================================================
   LAYOUT: TOPOS  (left=info+sm+text | right=lg+sm)
   ============================================================ */
.pf-topos-left{
  margin-top: 10px;
}   

.pf-layout-topos {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-topos-left > .pf-img { margin-bottom: 24px; }
.pf-topos-right > .pf-img { margin-bottom: 16px; }

/* ============================================================
   LAYOUT: ANTHOS  (left=info+sm+sm-indent | right=lg+text)
   ============================================================ */
.pf-anthos-left{
  margin-top: 20px;
} 

.pf-layout-anthos {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pf-anthos-left > .pf-img { margin-bottom: 16px; }
.pf-anthos-right > .pf-img { margin-bottom: 24px; }

/* ============================================================
   LAYOUT: OTHER – PNOE  (left=xl-img | right=info+text+text)
   ============================================================ */
.pf-layout-pnoe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}

.pf-pnoe-right > .pf-project-info { margin-top: 60px; margin-bottom: 24px; }
.pf-pnoe-right > .pf-project-desc + .pf-project-desc { margin-top: 20px; }

/* ============================================================
   LAYOUT: OTHER – THOLOS  (left=info+text | right=lg-img)
   ============================================================ */
.pf-layout-tholos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 80px;
}

.pf-tholos-left > .pf-project-desc + .pf-project-desc { margin-top: 20px; }

/* ============================================================
   CTA + CONTACT SECTION
   ============================================================ */
.pf-cta {
  background-color: var(--pf-darkest);
  padding: 100px 90px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 140px;
  align-items: start;
}

.pf-cta-headline {
  font-family: var(--pf-font);
  font-size: 58px;
  font-weight: 400;
  color: var(--pf-white);
  line-height: 1.25;
  margin-bottom: 52px;
}

.pf-cta-btn {
  display: inline-block;
  font-family: var(--pf-font);
  font-size: 28px;
  font-weight: 500;
  color: #000000;
  background-color: var(--pf-white);
  border-radius: 50px;
  padding: 18px 50px;
  transition: background-color 0.25s, transform 0.2s;
}

.pf-cta-btn:hover {
  background-color: #ebebeb;
  transform: translateY(-2px);
}

/* Right col / Form */
.pf-cta-right {
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px) scale(0.98);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  transition: opacity 1s cubic-bezier(0.2, 1, 0.2, 1), 
              transform 1s cubic-bezier(0.2, 1, 0.2, 1),
              filter 1s cubic-bezier(0.2, 1, 0.2, 1),
              visibility 1s;
}

.pf-cta.form-visible .pf-cta-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* Staggered internal items for a more premium "easing" feel */
.pf-cta-right > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.pf-cta.form-visible .pf-cta-right > * {
  opacity: 1;
  transform: translateY(0);
}

.pf-cta.form-visible .pf-cta-right .pf-form-title { transition-delay: 0.2s; }
.pf-cta.form-visible .pf-cta-right .pf-form-group:nth-child(2) { transition-delay: 0.3s; }
.pf-cta.form-visible .pf-cta-right .pf-form-group:nth-child(3) { transition-delay: 0.4s; }
.pf-cta.form-visible .pf-cta-right .pf-form-group:nth-child(4) { transition-delay: 0.5s; }
.pf-cta.form-visible .pf-cta-right .pf-form-submit { transition-delay: 0.6s; }

.pf-form-title {
  font-family: var(--pf-font);
  font-size: 36px;
  font-weight: 400;
  color: var(--pf-light);
  margin-bottom: 24px;
}

.pf-form-group { margin-bottom: 18px; }

.pf-form-label {
  display: block;
  font-family: var(--pf-font);
  font-size: 22px;
  font-weight: 400;
  color: var(--pf-light);
  margin-bottom: 8px;
}

.pf-form-input,
.pf-form-textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--pf-white);
  border: none;
  border-radius: 14px;
  font-family: var(--pf-font);
  font-size: 13px;
  font-weight: 400;
  color: #121313;
  outline: none;
  transition: box-shadow 0.25s;
}

.pf-form-input:focus,
.pf-form-textarea:focus {
  box-shadow: 0 0 0 2px var(--pf-blue);
}

.pf-form-input::placeholder,
.pf-form-textarea::placeholder {
  color: #9ca3af;
}

.pf-form-textarea {
  resize: vertical;
  min-height: 130px;
}

.pf-form-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--pf-blue);
  color: var(--pf-light);
  font-family: var(--pf-font);
  font-size: 13px;
  font-weight: 400;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.25s;
}

.pf-form-submit:hover { background-color: #1a3a58; }

/* ============================================================
   FOOTER
   ============================================================ */
.pf-footer {
  background-color: var(--pf-darkest);
  padding: 0 62px 10px;
}

.pf-footer-divider {
  border: none;
  border-top: 1px solid var(--pf-divider);
  width: 56%;
  margin: 0 auto 28px;
}

.pf-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pf-footer-logo img {
  width: 100px;
  height: auto;
}

.pf-copyright {
  font-family: var(--pf-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--pf-gray);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
  .pf-nav {
    padding: 10px 40px;
  }
  .pf-container {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .pf-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .pf-hero-text {
    padding: 100px 40px 40px;
    text-align: center;
    align-items: center;
  }

  .pf-hero-images {
    padding: 20px 40px 80px;
  }

  .pf-layout-idion,
  .pf-layout-akanni,
  .pf-layout-meraki,
  .pf-layout-koinon,
  .pf-layout-topos,
  .pf-layout-anthos,
  .pf-layout-pnoe,
  .pf-layout-tholos {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pf-idion-left,
  .pf-akanni-left,
  .pf-meraki-right,
  .pf-koinon-right,
  .pf-topos-left,
  .pf-anthos-left {
    margin-top: 0;
  }

  .pf-img-std {
    width: 100%;
    height: auto;
    aspect-ratio: 445 / 242;
  }

  .pf-cta {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 40px;
    text-align: center;
  }

  .pf-cta-headline {
    font-size: 42px;
    margin-bottom: 40px;
  }

  .pf-cta-btn {
    margin: 0 auto;
  }

  .pf-cta-right {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pf-nav {
    padding: 10px 20px;
  }

  .pf-nav-logo img {
    width: 90px;
  }

  .pf-container {
    padding: 0 20px;
  }

  .pf-hero-title {
    font-size: 56px;
  }

  .pf-hero-subtitle {
    font-size: 24px;
  }

  .pf-hero-images {
    flex-direction: column;
    padding: 20px 20px 60px;
  }

  .pf-hero-img {
    width: 100%;
    height: 300px;
  }

  .pf-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .pf-overview-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pf-overview-item:nth-child(even) {
    padding-top: 0;
  }

  .pf-item-num {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .pf-item-name {
    font-size: 32px;
  }

  .pf-project-title {
    font-size: 36px;
  }

  .pf-project-desc {
    font-size: 16px;
  }

  .pf-img-lg, .pf-img-xl, .pf-img-sm {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .pf-img-indent {
    margin-left: 0;
    width: 100%;
  }

  /* Reduce radii for mobile for cleaner look */
  .pf-nav, .pf-hero, .pf-overview, .pf-project-section, .pf-img {
    border-radius: 0 0 14px 14px;
  }
  
  .pf-img {
    border-radius: 14px;
  }

  .pf-footer-divider {
    width: 80%;
  }

  .pf-footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .pf-hero-title {
    font-size: 44px;
  }

  .pf-item-name {
    font-size: 32px;
  }

  .pf-project-title {
    font-size: 30px;
  }

  .pf-cta-headline {
    font-size: 32px;
  }
}
