/* Yleiset tyylit */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:  "Playfair Display", serif;
  background-color: #ffffff;
  color: #a02525;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #eeee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;   /* KESKITTÄÄ interior EN V Y tekstin alle */
  line-height: 1;
}



.logo-main {
   font-family:  "Playfair Display", serif;
  font-size: 2.8rem;      /* voit säätää */
  font-weight: 400;
  letter-spacing: 0.18em;
}


/* Pienempi "interior" -teksti */
.logo-sub {
  font-family:  "Playfair Display", serif;
  font-size: 1.1rem;      /* pienempi, siisti alateksti */
  letter-spacing: 0.3em;
  margin-top: 1.0em;      /* SÄÄTÄ TÄTÄ: 0.3em – 1.2em riippuen miten ison välin haluat */
}


.logo a:hover {
  opacity: 0.85;
}


/* Koristettu tagline (“Interior design & styling”) */
.tagline {
   font-family:  "Playfair Display", serif; /* vaihda halutuksi fontiksi */
  font-size: 2.5rem;                /* suurenna tai pienennä */
  text-align: center;               /* keskittää tekstin */
  margin: 0px 0;                   /* lisää tilaa ylös ja alas */
  letter-spacing: 0.05em;           /* kauniimpi typografia */
}

.minimal-block {
  text-align: center;     /* Keskittää tekstin blokin sisällä */
  max-width: 100%;        
  margin: 0 auto;         /* Keskittää divin itsessään */
  padding: 0px 0;        /* Lisää tilaa ylle ja alle, mutta ei sivuille */
}


nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  position: relative;
  padding-bottom: 4px;
  font-size: 0.95rem;
}

.instagram-icon svg {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.instagram-icon a {
  display: flex;
  align-items: center;
}

.instagram-icon svg:hover {
  opacity: 0.6;
  transform: scale(1.1); /* pieni hover-efekti */
}


/* Active-link korostus */


nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #111111;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Active-link korostus – tämän pitää olla VIIMEISENÄ näistä */
nav a.active::after {
  width: 100%;
}



/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hero-kuva */
.hero-image-wrapper {
  width: 100%;
  aspect-ratio: 640 / 640;
  border-radius: 0px;
  overflow: hidden;
  background-color: #f4f4f4;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Portfolio-grid: 2 kuvaa vierekkäin */
.portfolio-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr; /* mobiilissa yksi kuva per rivi */
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  background-color: #f5f5f5;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

/* Hover-teksti kuvan päällä */
.project-info {
  position: absolute;
  inset: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
  font-size: 0.9rem;
}

.project-card:hover .project-info {
  opacity: 1;
}

.project-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.project-location {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* About & Contact -sivujen blokki */
.minimal-block {
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid #ffffff;
  background-color: #ffffff;
  padding: 40px;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 700px;
}

/* Tagline text block spacing */
.tagline-block {
  text-align: center;
  padding: 60px 0;             /* tästä säädät YHTÄ SUURTA ylä- ja alaväliä */
}

/* Tagline text style */
.tagline {
  font-family:  "Playfair Display", serif;
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  margin: 0;                   /* poistaa ylimääräisen tyhjän tilan */
}

.contact-instagram {
  margin-top: -20px;
  text-align: center;
}

.contact-instagram a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
   color: #a02525;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

.contact-instagram a:hover {
  opacity: 0.7;
}

.contact-instagram svg {
  stroke:#a02525;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}



/* TÄMÄN JÄLKEEN ON RESPONSIIVISUUS ALUE */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  /* Logo hieman pienemmäksi mobiilissa */
  .logo-main {
    font-size: 2.1rem;
    letter-spacing: 0.12em;
  }

  .logo-sub {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    margin-top: 0.4em;
  }

  /* Valikon väliä vähän pienemmäksi */
  nav ul {
    gap: 16px;
  }

  /* Tagline hieman tiiviimmäksi mobiilissa */
  .tagline-block {
    padding: 32px 0;
  }

  .tagline {
    font-size: 1.8rem;
  }

  /* Portfolio yhteen sarakkeeseen (tämä sulla ehkä jo on, mutta varmistetaan) */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Pienennetään ylä- ja alareunan tyhjää tilaa */
  main {
    padding: 24px 16px 48px;
  }
}

/* Mobiilissa: näytä hover-teksti kun kortilla on .show-info */
.project-card.show-info .project-info {
  opacity: 1;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image-wrapper {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}




/* ===== Project categories / accordion portfolio ===== */
.project-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project {
  border: 1px solid #eee;
  background: #fff;
}

.project-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
  cursor: pointer;
  padding: 16px;
}

@media (max-width: 768px) {
  .project-summary {
    grid-template-columns: 1fr;
  }
}

.project-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px;
}

.project-cover h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.project-cover .meta {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Expand/collapse area */
.project-details {
  display: none;
  padding: 0 16px 16px;
}

.project.is-open .project-details {
  display: block;
}

/* Images inside expanded area */
.project-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

.project-gallery .project-card {
  border-radius: 0; /* terävät kulmat kuten halusit */
}




/* ===== Project categories / accordion portfolio ===== */
.project-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project {
  border: 1px solid #eee;
  background: #fff;
}

.project-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
  cursor: pointer;
  padding: 16px;
}

@media (max-width: 768px) {
  .project-summary {
    grid-template-columns: 1fr;
  }
}

/* 🔵 VAALEANSININEN TEKSTIBOXI */
.project-cover {
  background: #ccd2d2; /* vaaleansininen */
  border: 1px solid #d2cccc;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.project-cover h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.project-cover .meta {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* ⚪ VALKOINEN KUVA-ALUE */
.project-thumb {
  background: #fff;
  border: 1px solid #eee;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Expand/collapse area */
.project-details {
  display: none;
  padding: 0 16px 16px;
}

.project.is-open .project-details {
  display: block;
}

/* Images inside expanded area */
.project-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* terävät kulmat */
.project-card,
.project-card img {
  border-radius: 0 !important;
}

/* mobiili: näytä info kun kortilla on "show-info" */
.project-card.show-info .project-info {
  opacity: 1;
}



/* ===== Projektin kansirivi: 2 yhtä isoa boksia ===== */
.project-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* molemmat yhtä leveät */
  gap: 16px;
  align-items: stretch;
  cursor: pointer;
  padding: 16px;
}

/* Mobiilissa päällekkäin */
@media (max-width: 768px) {
  .project-summary {
    grid-template-columns: 1fr;
  }
}

/* Molemmille bokseille sama korkeus */
.project-cover,
.project-thumb {
  min-height: 0;
  aspect-ratio: 4 / 3;
             /* voit säätää esim 240–320px */
}

/* 🔵 TEKSTIBOKSI: keskitys + vaaleansininen tausta */
.project-cover {
  background: #ccd2d2;
  border: 1px solid #ccd2d2;
  padding: 18px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;         /* vaaka-keskitys */
  justify-content: center;     /* pysty-keskitys */
  text-align: center;          /* tekstin keskitys */
}

/* Otsikko ja metat siisteiksi keskitettynä */
.project-cover h2 {
  margin: 0 0 10px;
}

.project-cover .meta {
  margin: 0;
}

/* ⚪ KUVABOKSI: valkoinen ja kuva täyttää boksin */
.project-thumb {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* täyttää boksin siististi */
  display: block;
}
