/* ==================================================
   BASE
================================================== */

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

body{
  background:#0f0f0f;
  color:#f2f2f2;
  font-family:'Montserrat', sans-serif;
  line-height:1.5;
}

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

/* ==================================================
   HEADER
================================================== */

header{
  position:fixed;
  top:0;
  width:100%;
  height:80px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 8%;
  background:#000;
  z-index:1000;
}

.logo{
  font-size:16px;
  font-weight:500;
  letter-spacing:1px;
  color:#ffffff;
}

header nav{
  display:flex;
  align-items:center;
  gap:32px;
}

header nav a{
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#dcdcdc;
  font-weight:500;
  transition:color 0.25s ease;
}

header nav a:hover{
  color:#ffffff;
}

header nav a.active{
  color:#ffffff;
}

/* Language */

.lang-buttons{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-buttons a{
  font-size:11px;
  letter-spacing:1px;
  padding:6px 10px;
  border:1px solid #444;
  color:#e0e0e0;
  transition:all 0.25s ease;
}

.lang-buttons a:hover{
  border:1px solid #c6a55c;
  color:#c6a55c;
}

.lang-buttons a.active{
  border:1px solid #c6a55c;
  color:#c6a55c;
}

/* ==================================================
   HERO
================================================== */

.hero{
  height:80vh;
  margin-top:80px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;
}

.hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.35;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
}

.hero h1{
  font-size:44px;
  margin-bottom:18px;
}

.subtitle{
  margin-bottom:40px;
  letter-spacing:2px;
}

.quote{
  font-style:italic;
  font-size:26px;
}

/* ==================================================
   PAGE HERO
================================================== */

.page-hero{
  height:30vh;
  margin-top:80px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.page-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.25;
}

.page-hero-text{
  position:relative;
  z-index:2;
}

.page-hero h1{
  font-size:34px;
}

/* ==================================================
   SECTION
================================================== */

.section{
  padding:50px 10%;
  max-width:1000px;
  margin:0 auto;
}

.section-wide{
  padding:50px 6%;
  max-width:1700px;
  margin:0 auto;
}

.section p{
  margin-bottom:16px;
}

/* Ensure content above side images */
.section,
.section-wide{
  position:relative;
  z-index:1;
}

/* ==================================================
   BOOK GRID (rensad och stabil)
================================================== */

.books-grid{
  display:grid;
  gap:60px;
  margin-top:40px;
  grid-template-columns:1fr;
}

/* Tablet och uppåt */
@media(min-width:900px){
  .books-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ==================================================
@media(min-width:1200px){
  .books-grid{
    grid-template-columns:repeat(4,1fr);
  }
}
================================================== */

.book-card{
  background:#151515;
  padding:30px;
  border-radius:8px;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,0.6);
}

.book-card img{
  width:100%;
  height:auto;
  margin-bottom:20px;
  box-shadow:0 15px 30px rgba(0,0,0,0.6);
}

.book-card h3{
  font-size:20px;
  margin-bottom:12px;
}

.book-card p{
  font-size:15px;
  line-height:1.6;
  margin-bottom:12px;
  color:#cfcfcf;
}

.year{
  font-size:13px;
  opacity:0.7;
}

/* ==================================================
   SIDE IMAGES – SECTION BOUND
================================================== */

.pilot-content{
  position:relative;
  overflow:hidden;
}

.side-image{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  opacity:0.28;        /* justera själv */
  pointer-events:none;
}

/* Placering */
.side-left{
  left:-120px;         /* hur mycket de sticker in */
}

.side-right{
  right:-120px;
}

/* Texten ovanpå */
.text-wrapper{
  position:relative;
  z-index:2;
  max-width:900px;
  margin:0 auto;
}


/* ==================================================
   FOOTER
================================================== */

footer{
  text-align:center;
  padding:25px 0;
  background:black;
  font-size:13px;
  margin-top:80px;
}

/* ==================================================
   PAGE-SPECIFIC SIDE IMAGES
================================================== */
/* Biography */
.biography-page .side-left{
  background-image:url("images/biography-l.jpg");
}

.biography-page .side-right{
  background-image:url("images/biography-r.jpg");
}

/* Writer */
.writer-page .side-left{
  background-image:url("images/writer-l.jpg");
}

.writer-page .side-right{
  background-image:url("images/writer-r.jpg");
}

/* Poet */
.poet-page .side-left{
  background-image:url("images/poet-l.jpg");
}

.poet-page .side-right{
  background-image:url("images/poet-r.jpg");
}

/* Pilot */
.pilot-page .side-left{
  background-image:url("images/pilot.l.png");
}

.pilot-page .side-right{
  background-image:url("images/pilot.r.png");
}

/* Painter */
.painter-page .side-left{
  background-image:url("images/painter-l.jpg");
}

.painter-page .side-right{
  background-image:url("images/painter-r.jpg");
}

/* Politician */
.politician-page .side-left{
  background-image:url("images/politician-l.jpg");
}

.politician-page .side-right{
  background-image:url("images/politician-r.jpg");
}
/* ==================================================
   RESPONSIVE HEADER FIX
================================================== */

@media (max-width: 900px){

  header{
    flex-direction:column;
    height:auto;
    padding:20px;
  }

  .logo{
    margin-bottom:15px;
  }

  header nav{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
  }

  .lang-buttons{
    margin-top:15px;
  }

}

