@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
:root {
  --main-color: #dededd; 
  --card-background: #f4e9e6;
  --text-color: #2C2A32;
  --accent-color-1: #cebfd1;
  --accent-color-2: #f7c634;
  --button: #D25A2D;
  --button-hover: #e88a68;
  --font-simple: Inter;
  --font-fancy: 'Cormorant Garamond';
  --font-fancy-2: 'Playfair Display';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  color: var(--text-color);
  font-family: var(--font-simple);
  line-height: 1.6;
}


body {
  background-color: var(--main-color);
  scrollbar-gutter: stable;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

footer{
  text-align:center;
  padding:40px 20px;
  font-size:14px;
  color:#6b6b6b !important;
}

/* Layout */

.gallery {
  position: relative;
  margin-top: 2rem;
  margin: 2rem 24px;
}

@media (max-width: 800px) {
  .gallery {
    display: block;
  }
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px; /* spacing between items */
}

#gallery img {
  aspect-ratio: 3/4;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

#gallery img.loaded {
  opacity: 1;
}


.grid-item:hover {
  transform: scale(1.03);
  transition: 0.3s ease-in-out;
}


/* Modal */
/* background */
#myModal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.79);
  align-items: center;
  justify-content: center;
  padding: 16px;
}


/* content */

.modal-content{
  display: flex;
  height: fit-content;
  width: fit-content;
  justify-content: center;
  align-items: center;
  position: relative;
}


#modalImage {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  top: 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: whitesmoke !important;
  font-size: 35px;
  font-weight: bold;
  z-index: 1;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


@media (max-width:800px) {
  .close {
    top: 4rem;
    right: 20px;
    font-size: 40px;
  }
}



/*Transitions */

.modal-content {
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {transform: scale(0);} 
  to {transform: scale(1);}
}


/* Top nav desktop */

header {
  top: 0;
  font-family: var(--font-simple);
}


li {
    list-style: none;
}

nav a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.navbar {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-right: 24px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    font-family: serif;
}

.nav-branding {
  padding: 5px;
  font-family: var(--font-fancy-2);
  font-size: 2rem;
  font-weight: 400;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#info-nav-branding {
  color: var(--text-color) !important;
  text-shadow: none;
  font-weight: 400;
}

.dark-link {
  color: var(--text-color) !important;
  text-decoration: none;
  text-shadow: none;
  font-weight: 600;
}

.dark-link:hover {
  color: var(--button) !important;
}


.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: var(--button) !important;
    font-size: 1.2rem;
}
.dark-link:hover {
    color: var(--button) !important;
    font-size: 1.2rem;
}

/* Mobile */
.hamburger {
    cursor: pointer;
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-color-2);
    border-radius: 20px;
}

.darkbar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 20px;
}

 @media(max-width:800px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(-45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(45deg);
    }
    
    .nav-menu{
        position: absolute;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--text-color);
        width: 100vw;
        text-align: center;
        transition: 0.3s ease-in-out;
        z-index: 1;
    }

    .dark-menu {
        background-color: var(--accent-color-2);
        transition: 0.7s ease-in-out;
    }

    .nav-item {
        padding: 16px 0;
        width: 100%;
        height: 100%;
    }

    .nav-link {
      width: 100%;
      height: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link:hover {
      color: var(--accent-color-1) !important;
      transition: 0.3s ease-in-out;
    }
 }

/* landing page */

          
.main-body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.505), rgba(0, 0, 0, 0.61)), url("assets/full_2018/IKI_RYTOJAUS-pop-pastel-42x62.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 70%;
  height: 100vh;
  width: 100vw;
}

.hero-container{
  height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/*Filter*/

.filter-container{
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.filter{
  margin: auto 10px;
  border: solid var(--accent-color-1) 1px;
  padding: 2px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
}



#hero-h1{
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(77, 70, 56, 0.8);
  font-family: var(--font-fancy-2);
  line-height: 1.2;
  font-weight: 700;

}

#hero-p {
  color: #ffffff;
  font-family: var(--font-simple);
  font-weight: 300;
  font-size: 2.2rem;
  padding-bottom: 20px;
  text-align: center;
}
/* Info page */


#info-body{
  background-color: var(--main-color);
}

#painting{
  max-height: 85vh;
  max-width: 60vw;
  margin: 0 2vw;
}

.info-container {
  display: flex;    
  flex-direction: column;     
  align-self: center;
  align-items: center;
}

@media (max-width: 800px) {
  .flex-container{
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  #painting{
  max-width: 95vw;
  margin: 10% auto;
  }

  .info-container {   
  margin-top: 10%;
}
}

#title {
  margin-bottom: 20px;
  font-family: var(--font-simple);
  text-transform: uppercase;
}
#description {
  margin-bottom: 6px;
  font-size: 1.2rem;
}
#year {
  margin-bottom: 20px;
}

.button {
  width: 11em;
  height: 3.5em;
  border-radius: 1em;
  font-size: 15px;
  font-family: var(--font-simple);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #ffffff;
  background-color: var(--button);
}

.button::before {
 content: '';
 width: 0;
 height: 3.5em;
 border-radius: 1em;
 position: absolute;
 top: 0;
 left: 0;
 background-image: linear-gradient(to right, var(--button-hover) 0%, var(--button-hover) 100%);
 transition: .5s ease;
 display: block;
 z-index: -1;
}

.button:hover::before {
 width: 11em;
}


.flex-container{
  display: flex;
  justify-content: space-evenly;
}


.hidden {
  display: none;
}

.block {
  display: flex;
}

/* About section */

#about-header{
  padding:40px 20px;
  text-align:center;
  margin:0 auto;
  max-width: 960px;

}
#about-h1{
  font-family: var(--font-simple);
  font-size:38px;
  margin:0 0 10px;
}

#about-main{
  margin:0 auto;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:60px;
  max-width: 960px;
}

#cta-box{
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  width: 80%;
}

.about-cta {
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.row{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
}

.row.reverse{
  flex-direction:row-reverse;
}

.text{
  flex:1;
  min-width:280px;
}

.text h2{
  font-family:var(--font-simple);
  font-size:28px;
  margin-bottom:16px;
}

.text p{
  margin-bottom:16px; 
  font-size:16px;
}
.text blockquote{
  font-size: 2rem;
  font-style:italic;
  padding-left:20px;
  border-left:4px solid var(--accent-color-2);
  margin:24px 0;
  color:var(--text-color) !important;
  font-family: var(--font-fancy);
}

.image{
  flex:1;
  min-width:280px;
  display:flex;
  justify-content:center;
}

.image img{
  width:100%;
  max-width:480px;
  border-radius: 18px;
  box-shadow:0 8px 30px rgba(17,18,20,0.06);
}

@media(max-width:900px){
  .row, .row.reverse{
    flex-direction:column;
  }
  .image img{
    max-width:100%;
  }
}

.line-break{
  width: 50%;
  border: solid var(--accent-color-2) 1px;
  margin: 0 auto;
  border-radius: 18px;
}

/* Contact form */

.contactH2 {
  text-align: center;
  margin: 1.5rem;
}

/* Base form styling */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: var(--font-simple) , sans-serif;
}

.contact-form button {
  margin: 0 auto;
}

.contact-form label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color-1); /* Accent color from your site */
  box-shadow: 0 0 8px rgba(158, 124, 252, 0.2);
  outline: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form {
    padding: 0 1rem;
    max-width: 90%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem 0.9rem;
  }

  .contact-form button {
    width: 100%;
    padding: 0.8rem 0;
  }
}

/* buy page */

#buy-img{
  width: 80%;
  height: fit-content;
} 


.buy-layout{
  display: flex;
  flex-wrap: wrap;
}
.id-box {
  flex: 1;
  padding: 2rem;
}
.form-box {
  padding: 2rem;
  flex: 1;
}

.label{
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .buy-layout{
    display: block;
  }
}

.privacy {
  font-size: 0.8rem;
  font-weight: 500;
}


.lang-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  padding: 4px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.lang-btn svg { display: block; }
.lang-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.lang-btn.active {
  outline: 3px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.02);
}
.lang-btn:focus { outline: 2px dashed #888; outline-offset: 2px; }
