/*
  Your IT & Tech Mates homepage clean-room UX fix v4
  Loaded last. Uses explicit selectors to override older homepage styles safely.
*/

:root{
  --yitm-bg:#fbfaf6;
  --yitm-soft:#f2faf6;
  --yitm-card:#ffffff;
  --yitm-ink:#12231c;
  --yitm-muted:#49645a;
  --yitm-green:#008a55;
  --yitm-green-dark:#006f45;
  --yitm-border:#d8e7df;
  --yitm-shadow:0 18px 50px rgba(12,45,32,.10);
  --yitm-radius:24px;
}

html{scroll-behavior:smooth;}
body{
  background:var(--yitm-bg) !important;
  color:var(--yitm-ink) !important;
  overflow-x:hidden !important;
}
body.yitm-clean-home .wrap,
body .wrap{
  width:min(1120px, calc(100% - 40px)) !important;
  max-width:1120px !important;
  margin-inline:auto !important;
}

/* Header: keep it stable and prevent nav crowding. */
.site-header{
  position:sticky !important;
  top:0 !important;
  z-index:1000 !important;
  background:#020805 !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
.header-inner{
  min-height:74px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:22px !important;
}
.brand{min-width:230px !important;}
.nav{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  gap:8px 18px !important;
}
.nav a{white-space:nowrap !important;}
.nav-cta{padding:12px 18px !important;border-radius:999px !important;}

/* Clean hero sizing. */
.hero{padding:72px 0 48px !important;background:linear-gradient(180deg,#f8fffB 0%,#fbfaf6 100%) !important;}
.hero-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(320px,460px) !important;
  gap:42px !important;
  align-items:center !important;
}
.hero h1{max-width:780px !important;line-height:.98 !important;}
.hero-card-image,
.hero-card-image img{border-radius:var(--yitm-radius) !important;overflow:hidden !important;}
.hero-card-image img{width:100% !important;height:420px !important;object-fit:cover !important;display:block !important;}

/* Photo quick help: new compact dashboard style. */
.photo-quick-help{
  padding:64px 0 !important;
  background:var(--yitm-bg) !important;
}
.photo-quick-help .section-head{
  max-width:760px !important;
  margin:0 auto 28px !important;
  text-align:center !important;
}
.photo-action-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
  margin:26px 0 24px !important;
}
.photo-action-card,
.photo-action-card.primary{
  display:grid !important;
  grid-template-columns:168px minmax(0,1fr) !important;
  gap:0 !important;
  min-height:188px !important;
  height:auto !important;
  background:var(--yitm-card) !important;
  border:1px solid var(--yitm-border) !important;
  border-radius:22px !important;
  overflow:hidden !important;
  text-decoration:none !important;
  box-shadow:0 12px 36px rgba(0,0,0,.06) !important;
  color:var(--yitm-ink) !important;
}
.photo-action-card:hover{transform:translateY(-2px) !important;box-shadow:var(--yitm-shadow) !important;}
.photo-action-card img,
.photo-action-card.primary img{
  width:168px !important;
  height:100% !important;
  min-height:188px !important;
  max-height:220px !important;
  object-fit:cover !important;
  display:block !important;
}
.photo-action-body{
  padding:22px 22px 20px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
}
.photo-action-body .tag,
.tag,
.eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  max-width:100% !important;
  margin-bottom:10px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:#eef8f0 !important;
  color:#00764b !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  line-height:1.1 !important;
}
.photo-action-body h3{
  margin:0 0 8px !important;
  font-size:24px !important;
  line-height:1.05 !important;
  color:var(--yitm-green) !important;
}
.photo-action-body p{
  margin:0 0 12px !important;
  color:var(--yitm-muted) !important;
  font-size:16px !important;
  line-height:1.45 !important;
}
.photo-action-body b{color:var(--yitm-green-dark) !important;font-size:16px !important;}

.problem-pill-board{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  justify-content:center !important;
  margin:22px 0 30px !important;
}
.problem-pill-board a{
  display:inline-flex !important;
  align-items:center !important;
  min-height:42px !important;
  padding:10px 16px !important;
  border-radius:999px !important;
  border:1px solid var(--yitm-border) !important;
  background:#fff !important;
  color:var(--yitm-ink) !important;
  text-decoration:none !important;
  font-weight:800 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.04) !important;
}
.problem-pill-board a:hover{border-color:var(--yitm-green) !important;color:var(--yitm-green-dark) !important;}

.business-photo-panel{
  display:grid !important;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.4fr) !important;
  gap:22px !important;
  align-items:center !important;
  padding:26px !important;
  border-radius:var(--yitm-radius) !important;
  background:linear-gradient(135deg,#092019,#0b5f43) !important;
  color:#fff !important;
  overflow:hidden !important;
}
.business-photo-copy h3{color:#fff !important;margin:8px 0 !important;font-size:30px !important;line-height:1.05 !important;}
.business-photo-copy p{color:rgba(255,255,255,.82) !important;margin:0 !important;line-height:1.5 !important;}
.business-photo-actions{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}
.business-photo-actions a{
  min-height:130px !important;
  display:flex !important;
  align-items:flex-end !important;
  padding:16px !important;
  border-radius:18px !important;
  overflow:hidden !important;
  position:relative !important;
  color:#fff !important;
  text-decoration:none !important;
  background-image:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.68)),var(--quick-img) !important;
  background-size:cover !important;
  background-position:center !important;
}
.business-photo-actions span{position:relative !important;font-weight:900 !important;line-height:1.1 !important;text-shadow:0 1px 8px rgba(0,0,0,.45) !important;}

/* Email support: eliminate fragile right mockup and use simple cards. */
.email-support-showcase{
  padding:64px 0 !important;
  background:linear-gradient(180deg,#f5fff9 0%,#fbfaf6 100%) !important;
  overflow:hidden !important;
}
.email-support-grid{
  display:block !important;
  max-width:980px !important;
  margin-inline:auto !important;
}
.email-support-copy{
  max-width:none !important;
  background:#fff !important;
  border:1px solid var(--yitm-border) !important;
  border-radius:var(--yitm-radius) !important;
  padding:34px !important;
  box-shadow:var(--yitm-shadow) !important;
}
.email-support-copy h2{max-width:760px !important;margin:8px 0 12px !important;line-height:1 !important;}
.email-support-copy .lede{max-width:820px !important;line-height:1.58 !important;color:var(--yitm-muted) !important;}
.email-inline-steps{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:24px 0 !important;
}
.email-inline-steps div{
  display:block !important;
  padding:18px !important;
  border:1px solid var(--yitm-border) !important;
  border-radius:18px !important;
  background:#f9fffb !important;
  min-width:0 !important;
}
.email-inline-steps strong{
  display:block !important;
  margin-bottom:8px !important;
  color:var(--yitm-ink) !important;
  font-size:17px !important;
  line-height:1.2 !important;
}
.email-inline-steps span{
  display:block !important;
  color:var(--yitm-muted) !important;
  font-size:15px !important;
  line-height:1.45 !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
.email-support-panel,
.ticket-demo-card{
  display:none !important;
}
.email-support-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  margin-top:18px !important;
}
.email-support-warning{
  margin:18px 0 0 !important;
  padding:16px 18px !important;
  border:1px solid var(--yitm-border) !important;
  border-radius:16px !important;
  color:#27483d !important;
  background:#f9fffb !important;
  line-height:1.5 !important;
}

/* Button consistency. */
.btn,
button,
.nav-cta{
  white-space:normal !important;
  text-align:center !important;
}
.btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-height:48px !important;
  padding:13px 20px !important;
  border-radius:999px !important;
  text-decoration:none !important;
  font-weight:900 !important;
}
.btn-primary{background:var(--yitm-green) !important;color:#fff !important;border:1px solid var(--yitm-green) !important;}
.btn-secondary{background:#fff !important;color:var(--yitm-ink) !important;border:1px solid var(--yitm-border) !important;}

/* News preview should remain compact on home. */
.home-news-grid,.news-preview-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
}

@media (max-width: 980px){
  body .wrap{width:min(100% - 28px, 1120px) !important;}
  .hero-grid{grid-template-columns:1fr !important;gap:28px !important;}
  .hero-card-image img{height:320px !important;}
  .photo-action-grid{grid-template-columns:1fr !important;}
  .business-photo-panel{grid-template-columns:1fr !important;}
  .business-photo-actions{grid-template-columns:1fr 1fr !important;}
  .email-inline-steps{grid-template-columns:1fr !important;}
  .home-news-grid,.news-preview-grid{grid-template-columns:1fr 1fr !important;}
}

@media (max-width: 720px){
  .header-inner{min-height:auto !important;padding:12px 0 !important;align-items:flex-start !important;}
  .brand{min-width:0 !important;}
  .nav{display:none !important;}
  .mobile-menu-btn{display:inline-flex !important;}
  .hero{padding:46px 0 34px !important;}
  .hero h1{font-size:clamp(44px, 13vw, 70px) !important;}
  .photo-action-card,
  .photo-action-card.primary{
    grid-template-columns:1fr !important;
  }
  .photo-action-card img,
  .photo-action-card.primary img{
    width:100% !important;
    height:190px !important;
    min-height:190px !important;
    max-height:190px !important;
  }
  .photo-action-body{padding:20px !important;}
  .photo-action-body h3{font-size:22px !important;}
  .business-photo-actions{grid-template-columns:1fr !important;}
  .email-support-copy{padding:24px 18px !important;}
  .email-support-copy h2{font-size:clamp(34px,10vw,54px) !important;}
  .home-news-grid,.news-preview-grid{grid-template-columns:1fr !important;}
}


/* Clean latest-post cards: no visible dates/categories on landing page. */
body.yitm-clean-home .home-news-section{
  background:#fffaf2 !important;
  padding:72px 0 !important;
}
body.yitm-clean-home .home-news-section .section-head{
  max-width:820px !important;
  margin:0 auto 24px !important;
  text-align:center !important;
}
body.yitm-clean-home .home-news-toolbar{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  justify-content:center !important;
  margin:0 0 26px !important;
}
body.yitm-clean-home .home-news-toolbar a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  padding:9px 14px !important;
  border-radius:999px !important;
  border:1px solid rgba(0,137,86,.18) !important;
  background:#ffffff !important;
  color:#007a4d !important;
  text-decoration:none !important;
  font-size:.92rem !important;
  font-weight:900 !important;
  box-shadow:0 8px 18px rgba(12,31,24,.05) !important;
}
body.yitm-clean-home .home-news-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
  margin-top:8px !important;
}
body.yitm-clean-home .home-news-card{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  min-width:0 !important;
  min-height:230px !important;
  padding:22px !important;
  border-radius:22px !important;
  background:#ffffff !important;
  border:1px solid rgba(5,60,43,.12) !important;
  box-shadow:0 14px 34px rgba(13,38,28,.08) !important;
  overflow:hidden !important;
}
body.yitm-clean-home .home-news-card-top,
body.yitm-clean-home .home-news-meta,
body.yitm-clean-home .home-news-type,
body.yitm-clean-home .home-news-date{
  display:none !important;
}
body.yitm-clean-home .home-news-card h3{
  margin:0 !important;
  font-size:clamp(1.08rem, 1.2vw, 1.28rem) !important;
  line-height:1.22 !important;
  letter-spacing:-.01em !important;
  color:#11211a !important;
}
body.yitm-clean-home .home-news-card h3 a{
  color:inherit !important;
  text-decoration:none !important;
}
body.yitm-clean-home .home-news-card h3 a:hover{
  color:#008956 !important;
  text-decoration:underline !important;
  text-underline-offset:4px !important;
}
body.yitm-clean-home .home-news-card p{
  margin:0 !important;
  color:#40524b !important;
  line-height:1.55 !important;
  font-size:.98rem !important;
}
body.yitm-clean-home .home-news-link{
  margin-top:auto !important;
  color:#008956 !important;
  text-decoration:none !important;
  font-weight:900 !important;
}
body.yitm-clean-home .home-news-link:hover{
  text-decoration:underline !important;
  text-underline-offset:4px !important;
}
@media (max-width:980px){
  body.yitm-clean-home .home-news-grid{grid-template-columns:1fr 1fr !important;}
}
@media (max-width:680px){
  body.yitm-clean-home .home-news-section{padding:52px 0 !important;}
  body.yitm-clean-home .home-news-toolbar{justify-content:flex-start !important;overflow-x:auto !important;flex-wrap:nowrap !important;padding-bottom:4px !important;}
  body.yitm-clean-home .home-news-toolbar a{white-space:nowrap !important;}
  body.yitm-clean-home .home-news-grid{grid-template-columns:1fr !important;}
  body.yitm-clean-home .home-news-card{min-height:0 !important;padding:20px !important;}
}
