/* ==========================================================================
   Sandro's Books - Main Stylesheet
   Fully Responsive & Optimized
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'sandro-universal-bold';
  src: url('../fonts/SandroUniversal-Bold.woff2') format('woff2'),
       url('../fonts/SandroUniversal-Bold.woff') format('woff'),
       url('../fonts/SandroUniversal-Bold.ttf') format('truetype'),
       url('../fonts/SandroUniversal-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'sandro-universal-regular';
  src: url('../fonts/SandroUniversal-Regular.woff2') format('woff2'),
       url('../fonts/SandroUniversal-Regular.woff') format('woff'),
       url('../fonts/SandroUniversal-Regular.ttf') format('truetype'),
       url('../fonts/SandroUniversal-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'helvetica-regular';
  src: url('../fonts/Helvetica-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MyriadPro-Bold';
  src: url('../fonts/MyriadPro-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MyriadPro-regular';
  src: url('../fonts/MyriadPro-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'sandro-universal-regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #e7e7e7;
  color: #333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Hero Section (#home)
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  width: 90%;
  max-width: 820px;
  min-height: 600px;
  margin: 0 auto;
}

#home {
  padding-top: 50px;
  padding-left: 25px;
  padding-right: 25px;
  overflow: hidden;
}

.books-concept {
  position: relative;
  z-index: 10;
  max-width: 100%;
}

h1 {
  font-size: clamp(24px, 4.4vw, 38px);
  font-family: 'sandro-universal-bold', sans-serif;
  line-height: 1.25;
  margin: 0 0 10px 0;
  color: #1a1a1a;
}

h2 {
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: normal;
  line-height: 1.35;
  color: #444;
  margin: 0;
}

/* Parallax Elements */
.rellax {
  display: inline-block;
}

.cloud-one {
  width: 220px;
  max-width: 45vw;
  float: right;
  margin-right: 30px;
  margin-top: 15px;
}

.cloud-three {
  width: 180px;
  max-width: 38vw;
  position: absolute;
  right: 18%;
  top: 38%;
}

.cloud-four {
  width: 160px;
  max-width: 35vw;
  position: absolute;
  left: 6%;
  top: 50%;
}

.cloud-six {
  width: 75px;
  position: absolute;
  left: 45%;
  bottom: 25px;
}

.main-book {
  position: absolute;
  right: 20px;
  bottom: 15px;
  width: clamp(180px, 32vw, 290px);
  z-index: 5;
}

.main-book img,
.cloud-one img,
.cloud-three img,
.cloud-four img,
.cloud-six img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Catalog Heading & Introductory SVG
   -------------------------------------------------------------------------- */
.cathel {
  text-align: center;
  color: #d3bca1;
  font-size: clamp(34px, 6vw, 67px);
  font-family: 'sandro-universal-bold', sans-serif;
  width: 100%;
  margin: 60px auto 30px auto;
  padding: 0 15px;
}

.mainasart {
  width: 90%;
  max-width: 760px;
  margin: 0 auto 30px auto;
  height: auto !important;
  background: none !important;
  background-image: none !important;
}

.mainasart svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Download PDF Section
   -------------------------------------------------------------------------- */
.downloadpdf {
  text-align: center;
  width: 100%;
  margin: 40px auto 30px auto;
}

.downloadpdf a {
  display: inline-block;
  transition: transform 0.25s ease;
}

.downloadpdf a:hover {
  transform: translateY(-3px) scale(1.02);
}

.downloadpdf img {
  height: auto;
  max-height: 160px;
  width: clamp(180px, 40vw, 280px);
  display: block;
  margin: 0 auto;
}

.center {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Books Catalog Layout
   -------------------------------------------------------------------------- */
.books {
  height: auto;
  padding-top: 20px;
  width: 100%;
  margin: 0 auto !important;
}

.books .container-fluid {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Section Separators (.gamkopi) - Centered & Proportional Ribbon
   -------------------------------------------------------------------------- */
.gamkopi {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 90% !important;
  max-width: 680px !important;
  min-height: 58px;
  height: auto;
  background-image: url(../svg/gamkopi.svg) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  padding: 10px 40px;
  margin: 50px auto 25px auto !important;
  box-sizing: border-box;
}

.gamkopi h2 {
  font-size: clamp(16px, 2.3vw, 26px) !important;
  text-align: center;
  line-height: 1.25 !important;
  color: #fff;
  font-family: 'sandro-universal-bold', sans-serif;
  margin: 0;
  padding: 0;
  white-space: normal;
  word-break: keep-all;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Book Cards (.showsec, .libray, .poa)
   -------------------------------------------------------------------------- */
.showsec {
  position: relative;
  width: 90% !important;
  max-width: 700px !important;
  margin: 20px auto 35px auto !important;
  height: auto !important;
}

.libray {
  position: relative;
  width: 100% !important;
  margin: 0 auto;
}

.libray img {
  width: 100%;
  height: auto;
  display: none;
}

/* Desktop horizontal box by default */
.libray img:first-child {
  display: block;
}

.poa {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 82%;
  padding: 0 45px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.librayr {
  flex: 0 0 35%;
  max-width: 35%;
  height: 88%;
  min-height: 160px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0;
}

.limg {
  flex: 0 0 65%;
  max-width: 65%;
  padding-left: 20px;
  padding-right: 10px;
}

.centerss {
  width: 100%;
  margin-bottom: 0;
}

.sfont {
  font-size: clamp(16px, 1.8vw, 21px);
  font-family: 'sandro-universal-bold', sans-serif;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.25;
}

.read {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.read span {
  margin-right: 4px;
}

.read a {
  display: inline-block;
  padding: 2px 7px;
  background-color: rgba(119, 81, 45, 0.12);
  color: #77512d;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}

.read a:hover {
  background-color: #77512d;
  color: #fff;
  text-decoration: none;
}

.textdes {
  font-size: 12.5px;
  line-height: 1.45;
  color: #3a3a3a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.footer {
  width: 100%;
  padding: 50px 15px 40px 15px;
  text-align: center;
  height: auto !important;
}

.footer .row {
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
}

.img {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 0 auto 20px auto;
  height: 120px;
  width: 220px;
  max-width: 100%;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px auto;
}

.socials a {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.socials img {
  height: 36px;
  width: 36px;
  display: block;
}

.h3 {
  margin: 18px auto 0 auto;
  text-align: center;
  font-size: clamp(16px, 2.5vw, 22px);
  font-family: 'sandro-universal-bold', sans-serif;
  color: #77502c;
  line-height: 1.3;
}

.h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.h3 a:hover {
  text-decoration: underline;
  color: #553518;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .poa {
    padding: 0 35px;
  }
  .sfont {
    font-size: 17px;
  }
  .textdes {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Mobile & Small Tablet (max-width: 780px) */
@media (max-width: 780px) {
  #home {
    padding-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 520px;
  }

  .cloud-one {
    width: 140px;
    margin-right: 10px;
  }

  .cloud-three {
    width: 120px;
    right: 5%;
    top: 35%;
  }

  .cloud-four {
    width: 110px;
    left: 0;
    top: 48%;
  }

  .main-book {
    width: 200px;
    right: 10px;
    bottom: 10px;
  }

  /* Switch book box to vertical mobile layout */
  .showsec {
    max-width: 340px !important;
    width: 92% !important;
    margin: 20px auto 30px auto !important;
  }

  .libray img:first-child {
    display: none !important;
  }

  .libray img:nth-child(2) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .poa {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 88%;
    padding: 20px 24px;
    flex-direction: column;
    justify-content: flex-start;
  }

  .librayr {
    flex: 0 0 150px;
    width: 100%;
    max-width: 180px;
    height: 150px;
    margin: 0 auto 10px auto;
  }

  .limg {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 0 5px;
    text-align: center;
  }

  .gamkopi {
    max-width: 330px !important;
    min-height: 48px;
    padding: 8px 24px;
    margin: 35px auto 18px auto !important;
  }

  .gamkopi h2 {
    font-size: 15px !important;
  }

  .read {
    margin-bottom: 6px;
  }

  .read a {
    padding: 4px 10px;
    margin: 2px;
  }

  .textdes {
    font-size: 12px;
    line-height: 1.38;
  }
}

/* Extra small mobile (max-width: 380px) */
@media (max-width: 380px) {
  .gamkopi {
    max-width: 295px !important;
    padding: 6px 16px;
  }
  .gamkopi h2 {
    font-size: 13.5px !important;
  }
  .showsec {
    max-width: 300px !important;
  }
  .poa {
    padding: 16px 18px;
  }
  .librayr {
    flex: 0 0 130px;
    height: 130px;
  }
  .textdes {
    font-size: 11px;
    line-height: 1.35;
  }
}
