
/* ==========================================================
   ES FASHIONS v36 — WhatsApp Submission + Image Diversity
   + Screenshot-driven mobile fit corrections
   ========================================================== */

:root{
  --v36-ink:#080807;
  --v36-ivory:#f6f0e6;
  --v36-gold:#d9b15f;
  --v36-line:rgba(217,177,95,.28);
  --v36-mobile-nav:66px;
}

/* Final typography authority */
html,body,button,input,select,textarea,.btn,
.v5-nav,.v8-nav,.v5-drawer,.v32-contact-band,
.v27-service-page,.v12-config-shell{
  font-family:"DM Sans",Arial,sans-serif!important;
}
h1,h2,h3,h4,.display-title,.editorial-title,
.v21-uniform-copy h1,.v21-section-heading h2,.v27-service-hero h1,
.v32-head h2,.v31-visual-story h2,.v36-more-gallery h2{
  font-family:"Playfair Display",Georgia,serif!important;
  letter-spacing:-.035em!important;
}

/* ---------------- Desktop: clean uniform architecture ---------------- */
@media (min-width:821px){
  .v21-sector-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .v21-sector-card{
    min-height:380px!important;
    height:380px!important;
    border:1px solid rgba(217,177,95,.22)!important;
    border-radius:14px!important;
  }
  .v21-sector-card img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
  }
  .v21-editorial-media{
    min-height:620px!important;
  }
  .v21-editorial-media figure{
    min-height:0!important;
  }
  .v32-whatsapp-float{
    max-width:245px!important;
    padding:10px 14px!important;
    border-radius:999px!important;
  }
}

/* Proposal readiness */
.v36-proposal-readiness{
  margin:0 0 28px;
  padding:24px;
  border:1px solid var(--v36-line);
  background:linear-gradient(135deg,rgba(217,177,95,.08),rgba(255,255,255,.02));
  border-radius:18px;
}
.v36-proposal-readiness h3{
  margin:8px 0 10px;
  font-size:clamp(1.7rem,3vw,2.5rem);
}
.v36-proposal-readiness p{
  max-width:780px;
  line-height:1.7;
  color:inherit;
  opacity:.8;
}

/* Extra image gallery: more images without repeating what is already on the page */
.v36-more-gallery{
  padding:70px 0;
  background:#f5efe5;
  color:#17140f;
}
.v36-more-gallery .v36-gallery-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);
  gap:40px;
  align-items:end;
  margin-bottom:28px;
}
.v36-more-gallery h2{
  font-size:clamp(2.3rem,4.4vw,4.7rem);
  line-height:.95;
  margin:8px 0 0;
}
.v36-more-gallery .v36-gallery-head p{
  margin:0;
  color:#6b6155;
  line-height:1.7;
}
.v36-gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.v36-gallery-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid #ded3c2;
  overflow:hidden;
  border-radius:14px;
}
.v36-gallery-card figure{
  margin:0;
  height:330px;
  overflow:hidden;
  background:#191612;
}
.v36-gallery-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.v36-gallery-card div{
  padding:16px 16px 18px;
}
.v36-gallery-card small{
  display:block;
  color:#9c7027;
  font-size:.66rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.v36-gallery-card strong{
  display:block;
  font-family:"Playfair Display",Georgia,serif;
  font-size:1.35rem;
  line-height:1.05;
}
.v36-gallery-card span{
  display:block;
  margin-top:7px;
  color:#6d6256;
  line-height:1.45;
  font-size:.8rem;
}

/* ---------------- Phones / tablets ---------------- */
@media (max-width:820px){
  html,body{
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  body{
    padding-bottom:calc(var(--v36-mobile-nav) + env(safe-area-inset-bottom,0px) + 26px)!important;
  }

  /* Compact, organized type */
  .v21-uniform-copy h1,
  .v27-service-hero h1,
  .page-hero h1,
  .campaign-hero h1,
  .hero-copy h1{
    font-size:clamp(2.55rem,11.6vw,3.65rem)!important;
    line-height:.94!important;
    letter-spacing:-.045em!important;
    text-wrap:balance!important;
  }
  .section-head h2,
  .v21-section-heading h2,
  .v32-head h2,
  .v31-visual-story h2,
  .v36-more-gallery h2{
    font-size:clamp(2.05rem,9.7vw,3rem)!important;
    line-height:.98!important;
    text-wrap:balance!important;
  }
  p,li,.v31-service-note{
    line-height:1.62!important;
  }

  /* Uniform hero: remove dead black space and keep image + copy together */
  .v21-uniform-hero{
    display:grid!important;
    grid-template-columns:1fr!important;
    min-height:0!important;
    height:auto!important;
  }
  .v21-uniform-visual{
    order:1!important;
    height:340px!important;
    min-height:340px!important;
    max-height:340px!important;
    margin:0!important;
  }
  .v21-uniform-visual img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 24%!important;
  }
  .v21-uniform-copy{
    order:2!important;
    min-height:0!important;
    height:auto!important;
    padding:30px 0 24px!important;
  }
  .v21-uniform-copy-inner{
    width:calc(100% - 36px)!important;
    margin-inline:auto!important;
  }
  .v21-hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .v21-hero-actions .btn{
    width:100%!important;
    justify-content:center!important;
  }

  /* Stop clipped horizontal cards from the screenshots.
     These image stories now stack cleanly on phones. */
  .v31-visual-grid,
  .v32-image-grid,
  .v21-sector-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    overflow:visible!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    gap:16px!important;
    scroll-snap-type:none!important;
  }
  .v31-visual-card,
  .v31-visual-card:first-child,
  .v32-image-card,
  .v21-sector-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex-basis:auto!important;
    min-height:0!important;
    height:auto!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }

  /* Controlled photo heights: no more 700px tall cropped card on a 390px phone */
  .v31-visual-card{
    height:360px!important;
  }
  .v31-visual-card img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
    object-position:center 28%!important;
  }
  .v31-visual-card figcaption{
    left:18px!important;
    right:18px!important;
    bottom:18px!important;
  }
  .v31-visual-card figcaption small{
    font-size:.76rem!important;
  }

  .v32-image-card figure{
    height:300px!important;
    aspect-ratio:auto!important;
  }
  .v32-image-card img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .v32-image-card>div{
    min-height:0!important;
    padding:16px 16px 18px!important;
  }
  .v32-image-card h3{
    font-size:1.45rem!important;
  }

  .v21-sector-card{
    min-height:330px!important;
    height:330px!important;
  }
  .v21-sector-card img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    aspect-ratio:auto!important;
  }

  .v21-editorial-media{
    display:grid!important;
    grid-template-columns:1fr!important;
    overflow:visible!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    gap:10px!important;
  }
  .v21-editorial-media figure{
    width:100%!important;
    min-width:0!important;
    height:290px!important;
    min-height:290px!important;
  }

  /* More examples / visual direction heading from screenshots */
  .v32-expansion,
  .v31-visual-story{
    padding:48px 0!important;
  }
  .v32-head,
  .v31-visual-story .section-head{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:20px!important;
  }

  /* New gallery is also clean and full width on phones */
  .v36-more-gallery{
    padding:48px 0!important;
  }
  .v36-more-gallery .v36-gallery-head{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:20px!important;
  }
  .v36-gallery-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .v36-gallery-card figure{
    height:300px!important;
  }

  /* Proposal fields */
  .v36-proposal-readiness{
    padding:18px!important;
    border-radius:14px!important;
  }

  /* WhatsApp + bottom navigation should never fight for space */
  .v32-whatsapp-float{
    right:14px!important;
    bottom:calc(var(--v36-mobile-nav) + env(safe-area-inset-bottom,0px) + 12px)!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    padding:0!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    z-index:1200!important;
  }
  .v32-whatsapp-float span{
    width:auto!important;
    height:auto!important;
    margin:0!important;
    font-size:.69rem!important;
    line-height:1!important;
  }
  .v32-whatsapp-float b{
    display:none!important;
  }
  .v5-bottom-nav,.v6-bottom-nav,.v8-bottom-nav{
    height:calc(var(--v36-mobile-nav) + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(var(--v36-mobile-nav) + env(safe-area-inset-bottom,0px))!important;
  }
  main>section:last-child{
    margin-bottom:20px!important;
  }

  /* Forms: safe phone widths */
  input,select,textarea,button{
    max-width:100%!important;
  }
  input,select,textarea{
    font-size:16px!important;
  }
  .field-grid.two,.v12-field-grid,.auth-two,.two{
    grid-template-columns:1fr!important;
  }
}

@media (max-width:390px){
  .v21-uniform-visual{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
  }
  .v31-visual-card{
    height:330px!important;
  }
  .v32-image-card figure,
  .v36-gallery-card figure{
    height:270px!important;
  }
  .v21-sector-card{
    height:310px!important;
    min-height:310px!important;
  }
}

@media (max-width:350px){
  .v21-uniform-copy h1,
  .v27-service-hero h1,
  .page-hero h1{
    font-size:2.35rem!important;
  }
  .section-head h2,
  .v21-section-heading h2,
  .v32-head h2,
  .v31-visual-story h2{
    font-size:2rem!important;
  }
}
