
.work-pdf-frame{
  width:100%;
  height:850px;
  border:0;
  display:block;
  background:#fff;
  border-radius:14px;
}

.pdf-open-btn{
  display:inline-flex;
  padding:9px 16px;
  border-radius:999px;
  background:#20384d;
  color:#fff;
  font-weight:700;
}

@media(max-width:760px){
  .work-pdf-frame{
    height:75vh;
  }
}

/* compact embedded PDF layout */
.work-page{
  max-width:900px;
  margin:34px auto;
}

.work-header-card{
  padding:14px 18px;
  margin-bottom:14px;
}

.work-info h1{
  font-size:24px;
  text-align:center;
}

.work-description{
  font-size:13px;
  line-height:1.5;
  text-align:center;
}

.work-pdf-card{
  max-width:760px;
  margin:0 auto;
  padding:10px;
  border:1px solid #e3e7eb;
  border-radius:10px;
  box-shadow:none;
}

.work-pdf-top{
  margin-bottom:8px;
  padding:0 4px;
}

.work-pdf-top h2{
  font-size:15px;
}

.work-pdf-frame{
  height:620px;
  border-radius:6px;
}

.pdf-open-btn{
  padding:6px 12px;
  font-size:12px;
}

.work-hero-card{
  max-width:900px;
  margin:0 auto 26px;
  padding:24px;
  background:linear-gradient(135deg,#ffffff,#f3f7fb);
  border:1px solid #dfe8ef;
  border-radius:22px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:28px;
  align-items:center;
  box-shadow:0 14px 34px rgba(32,56,77,.08);
}

.work-hero-image{
  background:#fff;
  border-radius:18px;
  padding:12px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.work-hero-image img{
  width:100%;
  display:block;
  border-radius:14px;
  object-fit:cover;
}

.work-hero-info{
  text-align:right;
}

.work-kicker{
  display:inline-flex;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  background:#eef3f7;
  color:#20384d;
  font-size:13px;
  font-weight:700;
}

.work-hero-info h1{
  margin:0 0 14px;
  color:#20384d;
  font-size:34px;
  line-height:1.2;
}

.work-hero-info .work-description{
  text-align:right;
  font-size:15px;
  line-height:1.8;
  color:#42566a;
  max-height:170px;
  overflow:hidden;
}

.work-hero-btn{
  display:inline-flex;
  margin-top:18px;
  padding:10px 22px;
  border-radius:999px;
  background:#20384d;
  color:#fff;
  font-weight:700;
}

#workPdfBox{
  scroll-margin-top:90px;
}

@media(max-width:760px){
  .work-hero-card{
    grid-template-columns:1fr;
    padding:18px;
  }

  .work-hero-info h1{
    font-size:28px;
  }
}

.work-hero-card{
  display:block;
  max-width:820px;
}

.work-hero-image{
  float:left;
  width:210px;
  margin:0 0 18px 24px;
}

.work-pdf-card{
  max-width:none;
  margin:24px 0 0;
  padding:0;
  border:0;
  box-shadow:none;
  background:transparent;
}

.work-inner-divider{
  clear:both;
  height:1px;
  background:#e1e8ee;
  margin:22px 0 18px;
}

.work-pdf-top{
  padding:0;
  margin-bottom:10px;
}

.work-pdf-frame{
  height:640px;
  border:1px solid #dfe6ed;
  border-radius:10px;
}

@media(max-width:760px){
  .work-hero-image{
    float:none;
    width:100%;
    margin:0 0 18px;
  }
}

.work-hero-card{
  max-width:820px;
  margin:0 auto 35px;
  padding:24px;
  display:block;
}

.work-hero-summary{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:28px;
  align-items:center;
}

.work-hero-image{
  float:none;
  width:auto;
  margin:0;
}

.work-hero-info{
  min-width:0;
}

.work-inner-divider{
  width:100%;
  height:1px;
  background:#dfe7ed;
  margin:24px 0 20px;
  clear:both;
}

.work-pdf-card{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.work-pdf-frame{
  width:100%;
  height:640px;
}

@media(max-width:760px){
  .work-hero-summary{
    grid-template-columns:1fr;
  }

  .work-hero-image{
    max-width:260px;
    margin:0 auto;
  }
}

.work-page{
  max-width:1120px;
}

.work-hero-card{
  max-width:980px;
}

.work-pdf-frame{
  height:720px;
}

/* ===== Work page wider layout ===== */

.work-page{
  max-width:1200px;
  margin:28px auto 60px;
  padding:0 24px;
}

.work-shell{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

.work-hero-card{
  padding:30px 32px;
}

.work-hero-summary{
  gap:32px;
  align-items:center;
}

.work-hero-info h1{
  font-size:34px;
  line-height:1.25;
  margin:10px 0 16px;
}

.work-description{
  font-size:17px;
  line-height:2;
  max-width:760px;
}

.work-hero-image{
  width:220px;
  min-width:220px;
  height:220px;
}

.work-hero-image img{
  max-width:88%;
  max-height:88%;
}

.work-pdf-frame{
  width:100%;
  height:820px;
}

@media (max-width:768px){
  .work-page{
    padding:0 14px;
    margin-top:18px;
  }

  .work-hero-card{
    padding:22px 18px;
  }

  .work-hero-summary{
    gap:18px;
  }

  .work-hero-info h1{
    font-size:27px;
  }

  .work-description{
    font-size:16px;
    line-height:1.8;
  }

  .work-hero-image{
    width:150px;
    min-width:150px;
    height:170px;
  }

  .work-pdf-frame{
    height:700px;
  }
}


/* ===== Work hero final polish ===== */

.work-hero-summary{
  grid-template-columns:190px minmax(0,1fr);
  gap:38px;
}

.work-hero-image{
  width:190px;
  min-width:190px;
  height:210px;
}

.work-hero-info{
  max-width:820px;
}

.work-hero-info h1{
  font-size:38px;
  margin:12px 0 18px;
}

.work-description{
  max-width:820px;
  font-size:18px;
  line-height:2;
}

.work-pdf-card{
  margin-top:24px;
}

@media (max-width:768px){
  .work-hero-summary{
    grid-template-columns:1fr;
  }

  .work-hero-image{
    width:160px;
    min-width:160px;
    height:180px;
    margin:0 auto;
  }

  .work-hero-info{
    max-width:none;
  }

  .work-hero-info h1{
    font-size:29px;
  }

  .work-description{
    font-size:16px;
    line-height:1.8;
  }
}


/* hide PDF section heading/actions */
.work-pdf-top{
  display:none !important;
}

.work-pdf-card{
  margin-top:18px !important;
}


/* ===== Work description typography ===== */

.work-description{
  max-width:980px;
  margin:26px 0 0;
  font-size:19px;
  line-height:2;
  color:#28455d;
}

.work-description p{
  margin:0 0 10px;
}

.work-description p:last-child{
  margin-bottom:0;
}

.work-description-lead{
  font-weight:600;
  color:#173a55;
  font-size:20px;
}


/* ===== Work description softer final ===== */

.work-description{
  font-size:17px !important;
  line-height:1.95 !important;
  font-weight:400 !important;
  max-width:900px;
}

.work-description p,
.work-description-lead{
  font-weight:400 !important;
  font-size:17px !important;
}

.work-description p{
  margin:0 0 8px !important;
}


.related-works-section,
.work-quote-section{
  max-width:1100px;
  margin:38px auto 0;
  padding:28px;
  background:#fff;
  border:1px solid #dfe7ee;
  border-radius:22px;
  box-shadow:0 12px 30px rgba(32,56,77,.08);
  text-align:center;
}

.related-works-section h2,
.work-quote-section h2{
  margin:0 0 22px;
  color:#20384d;
  font-size:30px;
}

.related-works-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.related-work-card{
  display:block;
  padding:14px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8ef;
  text-decoration:none;
}

.related-work-card img{
  width:100%;
  height:170px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
}

.related-work-card strong{
  display:block;
  margin:14px 0 8px;
  color:#20384d;
  font-size:20px;
}

.related-work-card span{
  color:#fff;
  background:#20384d;
  padding:8px 16px;
  border-radius:999px;
  display:inline-block;
  font-weight:700;
}

.work-quote-section p{
  margin:0 0 20px;
  color:#486276;
}

.work-quote-form{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.work-quote-form textarea,
.work-quote-form button,
#workQuoteMsg{
  grid-column:1 / -1;
}

.work-quote-form input,
.work-quote-form textarea{
  border:1px solid #d8e2ea;
  border-radius:12px;
  padding:13px;
  font-size:15px;
}

.work-quote-form button{
  justify-self:center;
  border:0;
  background:#20384d;
  color:#fff;
  border-radius:999px;
  padding:13px 34px;
  font-weight:700;
  cursor:pointer;
}

#workQuoteMsg.success{color:#16834a}
#workQuoteMsg.error{color:#b00020}

@media(max-width:760px){
  .related-works-grid,
  .work-quote-form{
    grid-template-columns:1fr;
  }
}

/* ===== Quote form dark style ===== */

.work-quote-section{
  max-width:none;
  margin:48px -24px 0;
  padding:58px 24px 64px;
  border:0;
  border-radius:0;
  background:#20384d;
  color:#fff;
  box-shadow:none;
}

.work-quote-section h2{
  color:#fff;
  font-size:38px;
  margin-bottom:16px;
}

.work-quote-section p{
  color:#fff;
  font-size:18px;
  margin-bottom:34px;
}

.work-quote-form{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:12px;
}

.work-quote-form input,
.work-quote-form textarea{
  border:0;
  border-radius:0;
  min-height:54px;
  background:#fff;
  color:#20384d;
  font-size:16px;
}

.work-quote-form textarea{
  grid-column:1 / -1;
  min-height:86px;
}

.work-quote-form button{
  grid-column:1 / -1;
  width:100%;
  border-radius:0;
  background:#c79c2b;
  color:#fff;
  min-height:58px;
  font-size:18px;
}

@media(max-width:760px){
  .work-quote-section{
    margin-left:-14px;
    margin-right:-14px;
    padding:42px 14px;
  }

  .work-quote-form{
    grid-template-columns:1fr;
  }
}

/* ===== Quote form - new site style ===== */

.work-quote-section{
  max-width:1100px;
  margin:46px auto 0;
  padding:34px;
  background:linear-gradient(135deg,#ffffff,#f5f8fb);
  border:1px solid #dfe7ee;
  border-radius:24px;
  box-shadow:0 14px 34px rgba(32,56,77,.08);
  color:#20384d;
}

.work-quote-section h2{
  color:#20384d;
  font-size:34px;
  margin:0 0 10px;
}

.work-quote-section p{
  color:#496174;
  font-size:17px;
  margin:0 0 26px;
}

.work-quote-form{
  max-width:100%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.work-quote-form input,
.work-quote-form textarea{
  border:1px solid #d8e2ea;
  border-radius:14px;
  background:#fff;
  color:#20384d;
  padding:14px 16px;
  font-size:16px;
  min-height:52px;
}

.work-quote-form input::placeholder,
.work-quote-form textarea::placeholder{
  color:#c49a2c;
}

.work-quote-form textarea{
  grid-column:1 / -1;
  min-height:105px;
}

.work-quote-form button{
  grid-column:1 / -1;
  justify-self:center;
  width:auto;
  min-width:240px;
  border:0;
  border-radius:999px;
  background:#20384d;
  color:#fff;
  padding:15px 38px;
  font-size:18px;
  font-weight:700;
}

@media(max-width:760px){
  .work-quote-form{
    grid-template-columns:1fr;
  }

  .work-quote-section{
    padding:24px 18px;
  }
}

/* ===== Quote form font polish + file field ===== */

.work-quote-section h2{
  font-weight:700 !important;
  letter-spacing:-.4px;
}

.work-quote-section p{
  font-weight:400 !important;
}

.work-quote-form input,
.work-quote-form textarea,
.quote-file-field{
  font-weight:400 !important;
}

.quote-file-field{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #d8e2ea;
  border-radius:14px;
  background:#fff;
  color:#c49a2c;
  padding:12px 16px;
  min-height:52px;
  font-size:16px;
}

.quote-file-field input{
  border:0 !important;
  min-height:0 !important;
  padding:0 !important;
  color:#20384d;
}

.work-quote-form button{
  font-weight:700 !important;
}

/* ===== Quote form final touches ===== */

.work-quote-section{
  padding:42px 44px 46px;
}

.work-quote-form{
  grid-template-columns:repeat(3,1fr);
  align-items:stretch;
}

.quote-file-field{
  grid-column:1 / -1;
  max-width:480px;
  margin-right:auto;
  justify-content:flex-start;
}

.quote-file-field span{
  min-width:96px;
  font-weight:600;
}

.work-quote-form textarea{
  margin-top:4px;
}

.work-quote-form input,
.work-quote-form textarea,
.quote-file-field{
  transition:border-color .2s, box-shadow .2s;
}

.work-quote-form input:focus,
.work-quote-form textarea:focus,
.quote-file-field:focus-within{
  outline:none;
  border-color:#20384d;
  box-shadow:0 0 0 3px rgba(32,56,77,.08);
}

.work-quote-form button{
  min-width:220px;
  padding:14px 34px;
  margin-top:4px;
  transition:transform .2s, box-shadow .2s;
}

.work-quote-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(32,56,77,.22);
}

/* ===== Quote form 2 columns final layout ===== */

.work-quote-form{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px 18px !important;
  align-items:stretch;
}

.work-quote-form > input{
  width:100%;
  min-width:0;
}

.quote-file-field{
  grid-column:auto !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  min-width:0;
  box-sizing:border-box;
  justify-content:flex-start;
}

.work-quote-form textarea{
  grid-column:1 / -1 !important;
  width:100%;
  box-sizing:border-box;
}

.work-quote-form button,
#workQuoteMsg{
  grid-column:1 / -1 !important;
}

@media(max-width:760px){
  .work-quote-form{
    grid-template-columns:1fr !important;
  }

  .work-quote-form textarea,
  .work-quote-form button,
  #workQuoteMsg{
    grid-column:1 !important;
  }
}

/* ===== File input button polish ===== */

.quote-file-field{
  position:relative;
  overflow:hidden;
}

.quote-file-field input[type="file"]{
  width:100%;
  cursor:pointer;
}

.quote-file-field input[type="file"]::file-selector-button{
  border:0;
  background:#20384d;
  color:#fff;
  border-radius:999px;
  padding:8px 18px;
  margin-left:12px;
  font-weight:700;
  cursor:pointer;
}

.quote-file-field input[type="file"]::-webkit-file-upload-button{
  border:0;
  background:#20384d;
  color:#fff;
  border-radius:999px;
  padding:8px 18px;
  margin-left:12px;
  font-weight:700;
  cursor:pointer;
}

/* ===== Work image gallery ===== */

.work-gallery-box{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.work-hero-image{
  border:0;
  cursor:pointer;
  padding:0;
}

.work-gallery-thumbs{
  display:flex;
  gap:8px;
  justify-content:center;
}

.work-gallery-thumbs button{
  width:56px;
  height:56px;
  border:1px solid #d8e2ea;
  border-radius:10px;
  padding:4px;
  background:#fff;
  cursor:pointer;
}

.work-gallery-thumbs img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.work-image-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.work-image-modal.show{
  display:flex;
}

.work-image-modal img{
  max-width:min(92vw,1100px);
  max-height:88vh;
  background:#fff;
  border-radius:18px;
  padding:18px;
}

.work-image-modal-close{
  position:absolute;
  top:22px;
  left:26px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#20384d;
  font-size:30px;
  cursor:pointer;
}

/* ===== Work image slider ===== */

.work-slider-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:12px;
}

.work-slider-dot{
  width:9px;
  height:9px;
  border:0;
  border-radius:50%;
  background:#cfd9e2;
  cursor:pointer;
}

.work-slider-dot.active{
  background:#20384d;
}

.work-image-modal-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#20384d;
  font-size:42px;
  line-height:1;
  cursor:pointer;
}

.work-image-modal-arrow.prev{
  right:32px;
}

.work-image-modal-arrow.next{
  left:32px;
}

/* MOBILE RELATED WORKS 2 COLUMNS */
@media (max-width:900px){
  .related-works-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .related-work-card{
    min-width:0 !important;
    padding:8px !important;
    border-radius:14px !important;
  }

  .related-work-card img{
    height:125px !important;
    object-fit:contain !important;
  }

  .related-work-card strong{
    font-size:13px !important;
    line-height:1.35 !important;
  }

  .related-work-card span{
    font-size:11px !important;
    padding:9px 5px !important;
  }
}

/* MOBILE WORK TEXT SPACING */
@media (max-width:900px){

  .work-description,
  .work-description p{
    line-height:1.5 !important;
  }

  .work-description p{
    margin-top:0 !important;
    margin-bottom:8px !important;
  }

}

/* MOBILE WORK QUOTE COMPACT */
@media (max-width:900px){

  .work-quote-section{
    padding:24px 14px !important;
    border-radius:18px !important;
  }

  .work-quote-section h2{
    font-size:28px !important;
    line-height:1.2 !important;
    margin:0 0 10px !important;
  }

  .work-quote-section > p{
    font-size:14px !important;
    line-height:1.45 !important;
    margin:0 0 18px !important;
  }

  .work-quote-form{
    gap:10px !important;
  }

  .work-quote-form input,
  .work-quote-form textarea,
  .quote-file-field{
    min-height:48px !important;
    height:auto !important;
    padding:10px 14px !important;
    font-size:14px !important;
    border-radius:12px !important;
  }

  .quote-file-field{
    min-height:50px !important;
  }

  .work-quote-form button{
    min-height:46px !important;
    padding:10px 20px !important;
    font-size:15px !important;
    border-radius:12px !important;
  }

}
