/* Sense Roastery 8.3: responsive structural pass.
 * Scope all Elementor corrections to named theme blocks. Keep live Elementor
 * content, theme palette and user-chosen typography intact. */
:root {
  --sr-r83-side: clamp(16px, 4vw, 46px);
  --sr-r83-gap: clamp(18px, 3vw, 36px);
}
html, body { max-width:100%; }
body .site-header, body .sense-main-content, body .site-footer { min-width:0; }
body :is(.site-header,.sense-main-content,.site-footer) *,
body :is(.site-header,.sense-main-content,.site-footer) *::before,
body :is(.site-header,.sense-main-content,.site-footer) *::after { box-sizing:border-box; }
body :is(.sense-main-content,.site-footer) :is(.elementor,.e-con,.elementor-widget,.elementor-widget-container) { min-width:0; }
body .sense-main-content :is(p,h1,h2,h3,h4,h5,h6,li,blockquote),
body .site-footer :is(p,h2,h3,a) { overflow-wrap:break-word; }
body :is(.sense-main-content,.site-header,.site-footer) img {max-width:100%;height:auto;}
/* Do not force image widgets to inherit the height of their Elementor columns. */
body .sr-elementor-site-footer .sr-footer-main.e-con,
body .sr-elementor-site-footer .sr-footer-bottom-section.e-con {
  width:calc(100% - 2 * var(--sr-r83-side))!important;
  max-width:var(--sr-content-width,1320px)!important;
  margin-inline:auto!important;
}
body .sr-elementor-site-footer .sr-footer-main.e-con {
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.7fr) minmax(0,.9fr)!important;
  align-items:start!important; gap:clamp(24px,4vw,58px)!important;
  padding-block:56px 42px!important;
}
body .sr-elementor-site-footer .sr-footer-main.e-con > :is(.sr-footer-brand,.sr-footer-links,.sr-footer-right).e-con {
  display:flex!important; flex-direction:column!important; justify-content:flex-start!important;
  align-items:stretch!important; align-self:start!important;
  width:100%!important;max-width:100%!important;
  min-width:0!important; min-height:0!important; height:auto!important;
  flex:none!important; position:relative!important; gap:0!important;
}
/* Strong reset: Elementor's image widget may carry absolute/percentage dimensions.
 * Constrain both the widget and the media wrapper in normal document flow. */
html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo.elementor-widget {
  display:block!important; position:static!important; inset:auto!important;
  transform:none!important; float:none!important; clear:both;
  width:min(190px,100%)!important; max-width:100%!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  flex:0 0 auto!important; margin:0 0 20px!important; padding:0!important;
  overflow:visible!important;
}
html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo .elementor-widget-container,
html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo .elementor-image {
  position:static!important; width:100%!important; height:auto!important; min-height:0!important;
  margin:0!important; padding:0!important; transform:none!important; display:block!important;
}
html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo img {
  position:static!important; display:block!important; float:none!important;
  width:100%!important; height:auto!important; max-width:190px!important;
  min-height:0!important; max-height:none!important; object-fit:contain!important;
  margin:0!important; transform:none!important;
}
body .sr-elementor-site-footer .sr-footer-brand .sr-footer-description {
  position:static!important; display:block!important; width:100%!important;
  height:auto!important; margin:0!important; padding:0!important; max-width:360px!important;
  flex:0 0 auto!important;
}
body .sr-elementor-site-footer .sr-footer-description .elementor-widget-container {height:auto!important;}
body .sr-elementor-site-footer .sr-footer-description p {margin:0!important;line-height:2.15!important;}
body .sr-elementor-site-footer .sr-footer-links .sr-footer-link,
body .sr-elementor-site-footer .sr-footer-right .sr-footer-link {position:static!important;width:100%;margin:0 0 8px!important;}
body .sr-elementor-site-footer .sr-footer-link .elementor-button-wrapper,
body .sr-elementor-site-footer .sr-footer-link .elementor-button {
  display:inline-flex;max-width:100%;height:auto!important;min-height:0!important;
  white-space:normal!important;text-align:right!important;
}
body .sr-elementor-site-footer .sr-footer-main .sr-footer-heading {margin-bottom:14px!important;}
body .sr-elementor-site-footer .sr-footer-bottom-section.e-con,
body .sr-elementor-site-footer .sr-footer-bottom-section.e-con > .e-con {min-width:0;}
/* Main header and consultation strip use the same actual height.
 * Fix mobile nav offsets independent of v5/v6/v7 fixed pixels. */
body .sr-elementor-site-header .sr-header-section.e-con {
  width:calc(100% - 2 * var(--sr-r83-side))!important;
  max-width:var(--sr-content-width,1320px)!important;
  margin-inline:auto!important;
}
body .site-header.sr-has-consult-header.sr-elementor-site-header > .elementor {
  height:var(--sr-header-main-height)!important;min-height:var(--sr-header-main-height)!important;
}
body .sr-elementor-site-header .sr-header-section.e-con > .e-con {min-width:0!important;}
body .site-header .sr-consult-header-bar {box-sizing:border-box;}
body .site-header .sr-consult-header-inner {max-width:var(--sr-content-width,1320px);}
body .site-header .sr-consult-button--header {text-decoration:none!important;}
/* Buttons: text must not escape wrapper or sit on top of a neighboring button. */
body .sense-main-content .elementor :is(.sr-hero-actions,.sr-cta-side,.sr-packaging-copy) .elementor-button-wrapper {
  width:100%;max-width:100%;min-width:0;
}
body .sense-main-content .elementor :is(.sr-hero-actions,.sr-cta-side,.sr-packaging-copy) .elementor-button {
  max-width:100%;min-width:0; box-sizing:border-box; overflow-wrap:break-word;
  white-space:normal!important;line-height:1.8!important; position:relative;
  text-align:center;
}
body .sense-main-content .elementor .sr-hero-actions.e-con {align-items:stretch!important;}
body .sense-main-content .elementor .sr-hero-actions .sr-btn-inline.e-con {
  min-width:0!important; max-width:100%!important; align-items:stretch!important;
}
body .sense-main-content .elementor .sr-hero-actions .sr-btn-inline .sr-btn.elementor-widget,
body .sense-main-content .elementor .sr-hero-actions .sr-btn-inline .elementor-button-wrapper {
  width:100%!important;max-width:100%!important;min-width:0!important;
}
body .sense-main-content .elementor .sr-hero-actions .elementor-button {width:100%!important;}
body .sense-main-content .elementor .sr-hero-actions .elementor-button-content-wrapper {min-width:0;}
body .sense-main-content .elementor .sr-hero-actions .elementor-button-text {min-width:0;overflow-wrap:break-word;}
/* Nested custom widgets must not increase the page's scroll width. */
body .sense-main-content :is(.sense-catalog-widget,.sense-contact-widget,.form-card,.products-grid,.sr-service-cards,.sr-process-cards,.sr-values-cards) {
  min-width:0; max-width:100%;
}
body .sense-main-content :is(.sense-contact-widget,.sr-contact-form) :is(input,select,textarea,button) {box-sizing:border-box;max-width:100%;}
@media (max-width:1120px) {
  :root {--sr-header-main-height:87px;}
  body .sr-elementor-site-header .sr-header-section.e-con {
    height:var(--sr-header-main-height)!important;min-height:var(--sr-header-main-height)!important;
  }
  body .site-header.sr-has-consult-header .sense-el-navigation .mobile-nav {
    top:calc(var(--sr-header-main-height) + var(--sr-consult-bar-height,0px))!important;
    max-height:calc(100dvh - var(--sr-header-main-height) - var(--sr-consult-bar-height,0px))!important;
  }
  body .site-header:not(.sr-has-consult-header) .sense-el-navigation .mobile-nav {
    top:var(--sr-header-main-height)!important;
    max-height:calc(100dvh - var(--sr-header-main-height))!important;
  }
  body.admin-bar .site-header .sense-el-navigation .mobile-nav {
    top:calc(var(--sr-header-main-height) + var(--sr-consult-bar-height,0px) + 32px)!important;
  }
  body .sr-elementor-site-header .sr-header-section.e-con {grid-template-columns:minmax(0,1fr) minmax(120px,185px) minmax(0,1fr)!important;}
}
@media (max-width:980px) {
  /* Convert narrow desktop grids before their content begins to collide. */
  body .sense-main-content .elementor :is(.sr-hero-section,.sr-manifesto-section,.sr-about-show-section).e-con {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;min-height:0!important;
  }
  body .sense-main-content .elementor :is(.sr-hero-copy,.sr-hero-image,.sr-manifesto-copy,.sr-manifesto-image,.sr-about-show-copy,.sr-about-show-photo).e-con {
    width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;
  }
  body .sense-main-content .elementor .sr-hero-copy.e-con {
    padding:clamp(34px,6vw,66px) var(--sr-r83-side)!important;
    height:auto!important;
  }
  body .sense-main-content .elementor .sr-hero-image.e-con {
    min-height:0!important;height:clamp(280px,50vw,490px)!important;
  }
  body .sense-main-content .elementor :is(.sr-hero-photo,.sr-hero-photo .elementor-widget-container,.sr-hero-photo img) {
    width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;
  }
  body .sense-main-content .elementor .sr-hero-photo img {object-fit:cover!important;}
  body .sense-main-content .elementor .sr-manifesto-image.e-con {grid-row:1;}
  body .sense-main-content .elementor .sr-manifesto-copy.e-con,
  body .sense-main-content .elementor .sr-about-show-copy.e-con {padding:clamp(36px,6vw,66px) var(--sr-r83-side)!important;}
  body .sense-main-content .elementor :is(.sr-manifesto-image,.sr-about-show-photo).e-con {height:clamp(260px,44vw,430px)!important;}
  body .sense-main-content .elementor :is(.sr-manifesto-photo,.sr-about-show-image),
  body .sense-main-content .elementor :is(.sr-manifesto-photo,.sr-about-show-image) .elementor-widget-container,
  body .sense-main-content .elementor :is(.sr-manifesto-photo,.sr-about-show-image) img {
    height:100%!important;width:100%!important;min-height:0!important;max-height:100%!important;object-fit:cover!important;
  }
  body .sense-main-content .elementor :is(.sr-packaging-section,.sr-contact-section,.sr-about-hero-section,.sr-cta-section).e-con {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:var(--sr-r83-gap)!important;
  }
  body .sense-main-content .elementor :is(.sr-packaging-section,.sr-contact-section,.sr-about-hero-section,.sr-cta-section).e-con > .e-con {
    width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;flex:initial!important;
  }
  body .sense-main-content .elementor .sr-cta-side.e-con {align-items:flex-start!important;}
  body .sense-main-content .elementor .sr-section-header.e-con {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
  body .sense-main-content .elementor .sr-section-header.e-con > .e-con {width:100%!important;max-width:100%!important;min-width:0!important;}
  body .sense-main-content .elementor :is(.sr-service-cards,.sr-values-cards).e-con {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .sense-main-content .elementor :is(.sr-service-card,.sr-value-card).e-con {min-width:0!important;}
  body .sr-elementor-site-footer .sr-footer-main.e-con {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px!important;}
  body .sr-elementor-site-footer .sr-footer-brand.e-con {grid-column:1/-1!important;}
}
@media (max-width:767px) {
  :root {--sr-r83-side:20px;--sr-header-main-height:76px;--sr-consult-bar-height:49px;}
  body .sr-elementor-site-header .sr-header-section.e-con {
    width:calc(100% - 32px)!important;max-width:none!important;
    height:76px!important;min-height:76px!important;grid-template-rows:76px!important;
    grid-template-columns:minmax(0,1fr) minmax(105px,148px) minmax(0,1fr)!important;
    gap:5px!important;
  }
  body .sr-elementor-site-header .sr-header-section > .sr-header-logo-col.e-con {grid-column:2!important;grid-row:1!important;}
  body .sr-elementor-site-header .sr-header-section > .sr-header-nav.e-con {grid-column:1!important;grid-row:1!important;align-items:flex-start!important;}
  body .sr-elementor-site-header .sr-header-section > .sr-header-end.e-con {display:none!important;}
  body .sr-elementor-site-header .sr-header-logo.elementor-widget {width:min(120px,100%)!important;max-width:100%!important;}
  body .sr-elementor-site-header .sr-header-logo img {width:120px!important;max-width:100%!important;height:auto!important;max-height:70px!important;object-fit:contain!important;}
  body .sr-elementor-site-header .sense-el-navigation .menu-toggle {width:44px!important;height:44px!important;min-height:44px!important;}
  body .site-header .sr-consult-header-inner {width:calc(100% - 32px)!important;justify-content:center!important;gap:0!important;}
  body .site-header .sr-consult-header-text {display:none!important;}
  body .site-header .sr-consult-button--header {width:100%!important;max-width:100%!important;min-height:39px!important;}
  body .sense-main-content .elementor :is(.sr-services-section,.sr-catalog-section,.sr-process-section,.sr-values-section,.sr-about-quote-section,.sr-contact-hero-section).e-con {
    padding:clamp(40px,8vw,65px) var(--sr-r83-side)!important;
  }
  body .sense-main-content .elementor .sr-hero-copy.e-con {padding:34px var(--sr-r83-side) 38px!important;}
  body .sense-main-content .elementor :is(.sr-hero-first,.sr-hero-second) .elementor-heading-title {
    font-size:clamp(30px,8.5vw,48px)!important;line-height:1.42!important;
  }
  body .sense-main-content .elementor .sr-hero-actions.e-con {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;gap:10px!important;
    align-items:stretch!important;justify-items:stretch!important;
  }
  body .sense-main-content .elementor .sr-hero-actions > .sr-btn-inline.e-con {
    display:block!important; width:100%!important;max-width:100%!important;
    min-height:0!important;height:auto!important;flex:none!important;
  }
  body .sense-main-content .elementor .sr-hero-actions .sr-btn.elementor-widget,
  body .sense-main-content .elementor .sr-hero-actions .elementor-button-wrapper,
  body .sense-main-content .elementor .sr-hero-actions .elementor-button {
    display:flex!important;width:100%!important;max-width:100%!important;
    min-width:0!important;height:auto!important;
  }
  body .sense-main-content .elementor .sr-hero-actions .elementor-button {
    align-items:center!important;justify-content:center!important;
    min-height:48px!important;padding:12px 15px!important;gap:8px!important;
  }
  body .sense-main-content .elementor .sr-hero-actions .elementor-button::after {margin-inline-start:6px!important;margin-inline-end:0!important;}
  body .sense-main-content .elementor .sr-hero-note-code {margin-top:24px!important;}
  body .sense-main-content .elementor .sr-hero-note-text {margin:10px 0 0!important;max-width:100%!important;}
  body .sense-main-content .elementor .sr-hero-image.e-con {height:clamp(260px,83vw,420px)!important;}
  body .sense-main-content .elementor :is(.sr-hero-corner,.sr-hero-vertical) {display:none!important;}
  body .sense-main-content .elementor :is(.sr-service-cards,.sr-values-cards,.sr-process-cards).e-con {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;
  }
  body .sense-main-content .elementor :is(.sr-service-card,.sr-value-card,.sr-process-card).e-con {
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:24px 18px!important;min-height:0!important;height:auto!important;
  }
  body .sense-main-content .elementor :is(.sr-statement-section).e-con {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;padding:20px var(--sr-r83-side)!important;
  }
  body .sense-main-content .elementor .sr-packaging-section.e-con {padding:48px var(--sr-r83-side)!important;}
  body .sense-main-content .elementor .sr-packaging-photo.e-con {width:100%!important;min-width:0!important;height:clamp(260px,80vw,390px)!important;}
  body .sense-main-content .elementor .sr-packaging-img,
  body .sense-main-content .elementor .sr-packaging-img .elementor-widget-container,
  body .sense-main-content .elementor .sr-packaging-img img {height:100%!important;min-height:0!important;max-height:100%!important;width:100%!important;object-fit:cover!important;}
  body .sense-main-content .elementor .sr-cta-section.e-con {padding:44px var(--sr-r83-side)!important;}
  body .sense-main-content .elementor .sr-cta-side.e-con,
  body .sense-main-content .elementor .sr-cta-side .sr-cta-btn.elementor-widget,
  body .sense-main-content .elementor .sr-cta-side .elementor-button-wrapper {width:100%!important;max-width:100%!important;}
  body .sense-main-content .elementor .sr-cta-side .elementor-button {width:100%!important;min-height:48px!important;}
  body .sense-main-content .elementor .sr-contact-section.e-con {padding:44px var(--sr-r83-side)!important;}
  body .sense-main-content .elementor .sense-contact-widget .form-card {padding:24px 17px!important;}
  body .sense-main-content .elementor .sr-catalog-section .products-grid,
  body .sense-main-content .elementor .sense-catalog-widget .products-grid {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;
  }
  body .sense-main-content .elementor .sense-catalog-widget .product-card {width:100%!important;max-width:100%!important;min-width:0!important;}
  body .sense-main-content .elementor .sense-catalog-widget .product-body {min-width:0!important;}
  body .sense-main-content .elementor .sense-catalog-widget .catalog-controls {max-width:100%;}
  body .sr-elementor-site-footer .sr-footer-main.e-con {
    grid-template-columns:minmax(0,1fr)!important;gap:28px!important;
    padding-block:39px 30px!important;
  }
  body .sr-elementor-site-footer .sr-footer-brand.e-con {grid-column:auto!important;}
  body .sr-elementor-site-footer .sr-footer-main.e-con > .e-con {width:100%!important;max-width:100%!important;}
  body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo.elementor-widget {
    width:min(160px,100%)!important;margin:0 0 16px!important;
  }
  body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo img {max-width:160px!important;}
  body .sr-elementor-site-footer .sr-footer-main .sr-footer-heading {margin-bottom:12px!important;}
  body .sr-elementor-site-footer .sr-footer-bottom-section.e-con {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;
    padding-block:19px 24px!important;
  }
  body .sr-elementor-site-footer .sr-footer-bottom-section.e-con > .e-con {
    width:100%!important;max-width:100%!important;align-items:flex-start!important;
  }
  body .sr-elementor-site-footer .sr-footer-bottom-section .elementor-heading-title {line-height:1.9!important;}
  body .site-footer .sr-consult-footer-inner {flex-direction:column!important;align-items:stretch!important;gap:12px!important;}
  body .site-footer .sr-consult-button--footer {width:100%!important;}
  /* Fallback PHP footer: keep logo and text in separate flow rows. */
  body .site-footer:not(.sr-elementor-site-footer) .footer-top {display:flex!important;flex-direction:column!important;gap:28px!important;}
  body .site-footer:not(.sr-elementor-site-footer) .footer-brand {min-width:0;width:100%;}
  body .site-footer:not(.sr-elementor-site-footer) .footer-brand img {display:block!important;width:min(160px,100%)!important;height:auto!important;margin-bottom:15px!important;}
  body .site-footer:not(.sr-elementor-site-footer) .footer-bottom {width:100%;}
}
@media (max-width:782px) {
  body.admin-bar .site-header .sense-el-navigation .mobile-nav {
    top:calc(var(--sr-header-main-height) + var(--sr-consult-bar-height,0px) + 46px)!important;
  }
}
@media (max-width:390px) {
  :root {--sr-r83-side:16px;}
  body .sense-main-content .elementor .sr-hero-copy.e-con {padding-inline:16px!important;}
  body .sense-main-content .elementor .sr-hero-first .elementor-heading-title,
  body .sense-main-content .elementor .sr-hero-second .elementor-heading-title {font-size:clamp(28px,8.4vw,34px)!important;}
  body .sense-main-content .elementor .sr-statement-section.e-con {grid-template-columns:minmax(0,1fr)!important;}
  body .sense-main-content .elementor .sr-statement-section .sr-strip-col.e-con {width:100%!important;}
  body .sense-main-content .elementor .sr-hero-actions .elementor-button {font-size:12px!important;}
}
@media (prefers-reduced-motion: reduce) {
  body .sense-main-content .elementor .sr-btn .elementor-button {transition:none!important;transform:none!important;}
}
/* Last-resort menu state, after all historical opacity/visibility declarations. */
@media (max-width:1120px) {
  html body.menu-open .site-header .sense-el-navigation .mobile-nav {
    display:flex!important;opacity:1!important;visibility:visible!important;
    pointer-events:auto!important;transform:translateY(0)!important;
  }
  html body:not(.menu-open) .site-header .sense-el-navigation .mobile-nav {
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }
}
@media (max-width:767px) {
  html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo.elementor-widget {width:min(160px,100%)!important;max-width:160px!important;}
  html body .sr-elementor-site-footer .sr-footer-brand .sr-footer-logo img {width:100%!important;max-width:160px!important;}
}
