/* Desktop adaptation for the mobile-first PreHeated product. */

/* Tablet keeps the mobile interaction model. */
@media (min-width:760px) and (max-width:959.98px){
  .mobile-header{display:grid!important}
  .mobile-menu,.menu-scrim{display:block!important}
  .desktop-header{display:none!important}

  .wide-container,.narrow-container{width:calc(100% - 40px)}
  .section-block{padding:50px 0}

  .search-widget{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .search-widget .search-field{grid-column:1/-1}
  .search-widget .btn{grid-column:1/-1;width:100%;min-width:0!important}

  .faq-layout{grid-template-columns:1fr!important;gap:34px!important}
  .provider-list{grid-template-columns:1fr!important}

  .filter-sheet{
    left:0!important;right:0!important;top:auto!important;bottom:0!important;
    width:auto!important;border-radius:18px 18px 0 0!important;
    transform:translateY(105%)!important;
  }
  .filter-sheet.open{transform:translateY(0)!important}

  .provider-profile-grid{grid-template-columns:1fr!important}
  .provider-contact-box{
    padding-top:22px!important;border:0!important;border-top:1px solid var(--line)!important;
    border-radius:0!important;
  }

  .business-layout{grid-template-columns:1fr!important;gap:34px!important}
  .footer-inner{grid-template-columns:1fr 1fr!important;gap:40px 52px!important}
  .footer-brand{grid-column:1/-1}
  .copyright{grid-column:1/-1!important}

  .category-directory,.home-category-directory{grid-template-columns:1fr!important;column-gap:0!important}
}

@media (min-width:960px){
  :root{
    --wide:1180px;
    --narrow:740px;
  }

  .wide-container{width:min(1180px,calc(100% - 64px))}
  .narrow-container{width:min(740px,calc(100% - 64px))}
  .section-block{padding:58px 0}

  /* Header: aligned, not artificially centered. */
  .mobile-header,.mobile-menu,.menu-scrim{display:none!important}
  .desktop-header{
    display:block!important;
    height:76px;
    background:var(--black);
    color:#fff;
    position:sticky;
    top:0;
    z-index:70;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .desktop-nav{
    height:76px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:38px;
    align-items:center;
  }
  .desktop-brand{display:flex;align-items:center}
  .desktop-brand img{width:158px}
  .desktop-nav nav{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:26px;
    min-width:0;
  }
  .desktop-nav nav a{
    position:relative;
    padding:27px 0 24px;
    color:#e7e9ed;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
  }
  .desktop-nav nav a::after{
    content:'';
    position:absolute;
    left:0;right:0;bottom:19px;
    height:2px;background:var(--orange);
    transform:scaleX(0);transform-origin:left;
    transition:transform .16s ease;
  }
  .desktop-nav nav a:hover::after,
  .desktop-nav nav a:focus-visible::after,
  .desktop-nav nav a[aria-current="page"]::after{transform:scaleX(1)}
  .desktop-nav nav a[aria-current="page"]{color:#fff}
  .desktop-actions{
    display:flex;align-items:center;justify-content:flex-end;
    gap:16px;font-size:14px;white-space:nowrap;
  }
  .desktop-actions>a:not(.header-cta):hover{color:var(--orange)}
  .desktop-actions .header-cta{font-size:14px;min-height:42px;padding:9px 15px}
  .desktop-action-button{
    min-height:44px;padding:9px 11px;
    border:1px solid rgba(255,255,255,.22);border-radius:8px;
    background:transparent;color:#fff;display:inline-flex;align-items:center;gap:7px;font-weight:700;
  }
  .desktop-action-button:hover{border-color:var(--orange);color:var(--orange)}
  .desktop-back-link{display:inline-flex;align-items:center;gap:7px;color:#e7e9ed;font-weight:700}
  .desktop-back-link:hover{color:var(--orange)}
  .desktop-back-link .icon,.desktop-action-button .icon{width:16px;height:16px}

  /* Home hero: use the screen, do not dominate it. */
  .home-hero{
    min-height:520px;
    align-items:center;
    background-position:center 45%;
  }
  .hero-content{padding-top:64px;padding-bottom:62px}
  .hero-content h1{
    max-width:660px;
    margin-bottom:16px;
    font-size:clamp(54px,4.7vw,64px);
    line-height:.98;
  }
  .hero-content>p{max-width:620px;margin-bottom:28px;font-size:17px;line-height:1.52}
  .search-widget{
    max-width:1020px;
    grid-template-columns:minmax(280px,2fr) minmax(165px,1fr) minmax(165px,1fr) auto!important;
    gap:9px;padding:10px;
  }
  .search-widget .btn{min-width:185px!important}
  .hero-supplier{margin-top:17px!important}

  /* Headings and section rhythm. */
  .section-head{margin-bottom:26px}
  .section-head h2,.page-heading h1{font-size:36px}
  .section-head p,.page-heading p{font-size:15px}

  /* Home categories use an editorial, numbered directory. */
  .home-categories .wide-container{width:min(1180px,calc(100% - 64px))}
  .home-category-directory{
    padding-top:4px!important;padding-bottom:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:54px!important;
  }
  .home-category-directory .category-row{
    min-height:0!important;
    padding:24px 0 27px 88px!important;
  }
  .home-category-directory .category-row::before{
    top:25px!important;left:0!important;font-size:27px!important;font-weight:700!important;
  }
  .home-category-directory .category-row-title{
    display:grid!important;grid-template-columns:1fr!important;justify-items:start!important;gap:2px!important;
  }
  .home-category-directory .category-row-title strong{font-size:22px!important}
  .home-category-directory .category-row-title small{font-size:12px!important}
  .home-category-directory .subcategory-links{
    margin:17px 0 0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 22px!important;
  }
  .home-category-directory .subcategory-links a{font-size:14px!important}

  /* Supplier CTA is a bridge, not a second hero. */
  .supplier-band{padding:40px 0}
  .supplier-band-inner{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:42px}
  .supplier-band h2{font-size:29px;margin-bottom:6px}
  .supplier-band p{font-size:15px;max-width:680px}
  .supplier-band .btn{justify-self:end!important;min-width:170px}

  /* FAQ uses a focused reading measure, no sticky column. */
  .faq-section .wide-container{width:min(1180px,calc(100% - 64px))}
  .faq-layout{grid-template-columns:280px minmax(0,1fr)!important;gap:58px!important;align-items:start}
  .faq-layout>div:first-child{position:static!important}
  .faq-item>button{min-height:76px;font-size:17px}

  /* Categories page: same language, less oversized. */
  .categories-page>.wide-container{width:min(1260px,calc(100% - 56px))}
  .categories-page .page-heading{padding:54px 0 44px!important}
  .categories-page .page-heading h1{max-width:680px;font-size:56px!important}
  .categories-page .page-heading p{font-size:16px!important}
  .categories-search-form{max-width:720px!important;margin-top:24px!important}
  .category-directory{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:54px!important;
    padding:22px 0 16px!important;
  }
  .category-row{min-height:0!important;padding:28px 0 31px 104px!important}
  .category-row::before{left:0!important;top:29px!important;font-size:31px!important}
  .category-row-title{display:grid!important;grid-template-columns:1fr!important;justify-items:start!important;gap:2px!important}
  .category-row-title strong{font-size:24px!important}
  .category-row-title small{font-size:13px!important}
  .subcategory-links{
    margin:21px 0 0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 24px!important;
  }
  .subcategory-links a{font-size:15px!important}
  .categories-end{margin:20px 0 48px!important;padding:24px 0!important}

  /* Directory gets the widest product measure. */
  .directory-page{padding:40px 0 68px}
  .directory-wrap{width:min(1180px,calc(100% - 64px))}
  .directory-search{max-width:900px}
  .directory-heading{padding:12px 0 24px}
  .directory-heading h1{font-size:42px}
  .directory-heading p{font-size:15px}
  .filter-button{min-width:112px;justify-content:center}
  .directory-status{margin-bottom:18px;padding:11px 0}
  .provider-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}
  .provider-card{padding:22px}
  .provider-main{grid-template-columns:54px minmax(0,1fr);gap:14px}
  .provider-avatar{width:54px;height:54px}
  .provider-main h2{font-size:21px}
  .provider-description{min-height:0}
  .provider-actions{margin-top:16px}
  .provider-actions .btn{flex:1}

  .filter-sheet{
    left:auto!important;right:0!important;top:76px!important;bottom:0!important;
    width:390px!important;padding:28px 26px!important;border-radius:0!important;
    transform:translateX(105%)!important;box-shadow:-18px 0 44px rgba(0,0,0,.12);
  }
  .filter-sheet.open{transform:translateX(0)!important}
  .sheet-scrim{top:76px}

  /* Provider profile. */
  .provider-profile-head{padding:44px 0 32px}
  .provider-profile-head>.wide-container{grid-template-columns:76px minmax(0,1fr);gap:20px}
  .provider-avatar-large{width:76px;height:76px;font-size:22px}
  .provider-profile-head h1{font-size:40px}
  .provider-profile-grid{
    grid-template-columns:minmax(0,1fr) 330px!important;
    gap:58px;padding-top:42px;padding-bottom:68px;
  }
  .provider-profile-main{gap:32px}
  .provider-profile-main h2{font-size:24px}
  .provider-contact-box{
    padding:24px!important;border:1px solid var(--line)!important;border-radius:12px!important;
    align-self:start;position:sticky;top:102px;
  }

  /* Auth / onboarding remain intentionally narrow. */
  .auth-page{min-height:calc(100svh - 76px)}
  .auth-wrap{width:min(520px,calc(100% - 64px))}
  .auth-card{padding:34px 32px}
  .auth-card h1{font-size:36px}
  .auth-form{gap:17px}
  .auth-input{height:54px}

  .onboarding-wrap{width:min(660px,calc(100% - 64px))}
  .onboarding-progress{margin-bottom:32px}
  .onboarding-head h1{font-size:38px}
  .onboarding-fields{gap:18px}
  .onboarding-fields input,.onboarding-fields select,.onboarding-fields textarea{min-height:54px}
  .onboarding-actions{margin-top:27px}

  /* Dashboard / account. */
  .dashboard-layout{max-width:920px;margin:0 auto;gap:30px}
  .dashboard-status{padding:28px;grid-template-columns:minmax(0,1fr) auto!important;align-items:center}
  .dashboard-status strong{font-size:25px}

  /* Compare. */
  .compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px}
  .compare-grid article{padding:24px}

  /* Editorial pages. */
  .guide-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;padding:26px 0}
  .guide-row h2{font-size:25px}
  .article-detail h1{font-size:44px}
  .prose{font-size:17px;line-height:1.72}

  .business-layout{grid-template-columns:1.05fr .95fr!important;gap:68px!important;align-items:start}
  .business-layout h1{font-size:46px}
  .business-points p{padding:20px 0}

  /* Footer: compact and aligned with the header. */
  .site-footer{padding:52px 0 28px}
  .footer-inner{grid-template-columns:1.15fr .72fr .93fr!important;gap:56px!important}
  .footer-brand img{width:196px;margin-bottom:24px}
  .footer-brand p{font-size:16px;line-height:1.65;max-width:500px}
  .footer-nav{gap:12px}
  .footer-nav a{font-size:16px}
  .footer-nav a:hover{color:#fff}
  .copyright{grid-column:1/-1!important}

  /* Desktop interaction polish. */
  .btn,.category-row-title,.subcategory-links a,.guide-row>a,.text-link{
    transition:color .16s ease,border-color .16s ease,background-color .16s ease,transform .16s ease;
  }
  .btn:hover{transform:translateY(-1px)}
  .category-row-title:hover strong{color:var(--orange)}
}

@media (min-width:1200px){
  .home-hero{min-height:540px}
  .hero-content h1{font-size:64px}
}
