/* ==========================================================================
   Tamariska — Mobile layout layer
   --------------------------------------------------------------------------
   Everything below 992px. The desktop layout is untouched: every rule either
   lives inside the media query, or hides a mobile-only element on desktop.
   Load this AFTER mbr-additional.css.
   ========================================================================== */

:root {
  --tmr-brown: #792f14;
  --tmr-brown-dark: #5d2410;
  --tmr-brown-soft: #9a5a3d;
  --tmr-sand: #f2dfc4;
  --tmr-sand-light: #faf1e3;
  --tmr-cream: #fffaec;
  --tmr-ink: #3b2a22;
  --tmr-line: rgba(121, 47, 20, 0.14);
  --tmr-wa: #1faa53;
  --tmr-radius: 18px;
  --tmr-radius-sm: 13px;
  --tmr-bar-h: 68px;
  --tmr-shadow: 0 6px 22px rgba(121, 47, 20, 0.11);

  /* Shape of the product / seasonal photos on mobile. Width is fixed by the
     2-up grid, so this is what controls how tall a card is.
       4 / 5  portrait, standard product-card shape (default)
       1 / 1  square, shortest
       3 / 4  slightly taller than 4/5                                   */
  --tmr-card-ratio: 4 / 5;
}

/* Mobile-only markup stays out of the desktop layout entirely. */
.tmr-m-only { display: none !important; }

@media (max-width: 991.98px) {

.tmr-m-only { display: block !important; }
.tmr-d-only { display: none !important; }

/* ==========================================================================
   1. Global rhythm & type
   ========================================================================== */

body {
  overflow-x: hidden;
  padding-bottom: var(--tmr-bar-h);
  -webkit-text-size-adjust: 100%;
}

/* Desktop sections carry 5–6rem of padding. Halve it so the page stops
   feeling like a slideshow of empty bands. */
section.features13,
section.news08,
section.content18,
section.header14,
section.contacts3,
section.footer3,
section.clients04 {
  padding-top: 2.6rem !important;
  padding-bottom: 2.6rem !important;
}

/* The navbar is fixed, and its height changes with width (72 / 90 / 119px as
   the brand reflows). Once the section padding is halved, the first heading
   slides under it, so clear the height mobile.js measures at runtime. */
body:not(.tmr-home) section.menu + section {
  padding-top: calc(var(--tmr-nav-h, 72px) + 2.4rem) !important;
}

section.features13 .container,
section.news08 .container,
section.news08 .container-fluid,
section.features13 .container-fluid,
section.contacts3 .container,
section.clients04 .container,
section.content18 .container {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

/* Section headings — Mobirise's "fluid" scale only drops 3.4rem to 2rem,
   which still wraps to three lines on a 360px screen. */
section.features13 .mbr-section-title,
section.news08 .mbr-section-title,
section.content18 .mbr-section-title,
section.contacts3 .mbr-section-title,
section.clients04 .mbr-section-title {
  font-size: 1.72rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em;
}

section.clients04 .mbr-section-subtitle,
section.news08 .mbr-section-subtitle {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

/* Collapse the 3rem gap Mobirise puts under every section head. */
.row.justify-content-center.mb-5 {
  margin-bottom: 1.5rem !important;
}

/* In-page links (menu → Delivery, hero → Katalog) jump to a section top that
   the fixed navbar then covers. Keep the heading clear of it. */
section[id] {
  scroll-margin-top: calc(var(--tmr-nav-h, 72px) + 0.75rem);
}

/* ==========================================================================
   2. Navbar
   ========================================================================== */

.menu3 .navbar {
  padding: 0.4rem 0.75rem !important;
}

.menu3 .navbar-brand .navbar-logo img {
  height: 3.1rem !important;
}

/* The panel is translucent by default, so the hero shows through the menu. */
.menu3 .navbar-collapse {
  background: var(--tmr-cream) !important;
  border-radius: var(--tmr-radius) !important;
  box-shadow: var(--tmr-shadow);
  padding: 0.5rem 0.35rem 0.9rem !important;
}

/* 44px minimum tap target on every menu row. */
.menu3 .navbar-nav .nav-link {
  display: block !important;
  width: 100%;
  font-size: 1rem !important;
  padding: 0.78rem 1rem !important;
  border-radius: 11px;
}

.menu3 .navbar-nav .nav-item + .nav-item .nav-link {
  border-top: 1px solid var(--tmr-line);
  border-radius: 0;
}

.menu3 .dropdown-menu {
  background: var(--tmr-sand-light) !important;
  border-radius: 12px !important;
  margin: 0.25rem 0.4rem 0.4rem !important;
  padding: 0.3rem 0 !important;
}

.menu3 .dropdown-menu .dropdown-item {
  font-size: 0.94rem !important;
  padding: 0.62rem 1.1rem !important;
}

/* ==========================================================================
   3. Hero (index.html) — replaces the wide baked-in-text banner
   --------------------------------------------------------------------------
   bannerweb03.webp is 3381x1818 with the wordmark drawn into the pixels.
   Under `background-size: cover` on a portrait phone only ~22% of its width
   survives, slicing the logo in half. On mobile we drop the image entirely
   and rebuild the hero out of real text.
   ========================================================================== */

section.header16.mbr-fullscreen {
  background-image: none !important;
  background-color: var(--tmr-sand) !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  display: block !important;
}

section.header16.mbr-fullscreen > .container-fluid,
section.header16.mbr-fullscreen > .mbr-overlay,
section.header16.mbr-fullscreen .jarallax-container {
  display: none !important;
}

.tmr-m-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--tmr-nav-h, 72px) + 1.5rem) 1.35rem 0;
  background:
    radial-gradient(125% 62% at 50% 2%, #faf0df 0%, #f2e0c8 52%, #e5cdb7 100%);
  text-align: center;
}

/* Eucalyptus sprigs lifted from the desktop banner's corners and keyed onto
   transparency, so they sit on the gradient without a visible plate. */
.tmr-m-hero::before,
.tmr-m-hero::after {
  content: "";
  position: absolute;
  background: url("../images/m-hero-leaf.webp") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

.tmr-m-hero::before {
  top: 3.4rem;
  left: -4.2rem;
  width: 9.5rem;
  height: 15.4rem;
  opacity: 0.62;
  transform: rotate(-7deg);
}

.tmr-m-hero::after {
  top: 5.2rem;
  right: -5rem;
  width: 8.2rem;
  height: 13.3rem;
  opacity: 0.42;
  transform: scaleX(-1) rotate(-11deg);
}

.tmr-m-hero__inner {
  position: relative;
  z-index: 2;
}

.tmr-m-hero__title {
  font-family: 'Zen Antique', serif;
  font-size: clamp(2.7rem, 13.2vw, 3.6rem);
  line-height: 0.98;
  color: var(--tmr-brown);
  margin: 0;
  letter-spacing: -0.01em;
}

.tmr-m-hero__sub {
  font-family: 'Zen Antique', serif;
  font-size: clamp(1.02rem, 4.6vw, 1.28rem);
  color: var(--tmr-brown);
  opacity: 0.86;
  margin: 0.3rem 0 0;
}

.tmr-m-hero__tag {
  font-family: 'Manrope', sans-serif;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--tmr-brown);
  opacity: 0.72;
  margin: 0.7rem auto 0;
  max-width: 19rem;
}

/* Trust badges — the desktop banner's three icons, rebuilt as pills. */
.tmr-m-hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
}

.tmr-m-hero__badges li {
  font-family: 'Manrope', sans-serif;
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tmr-brown);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(121, 47, 20, 0.16);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  white-space: nowrap;
}

.tmr-m-hero__cta {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.15rem;
}

/* The photo's own ground is #e5cdb7, so painting the same colour behind it
   removes the seam where it meets the hero gradient, whatever height the
   hero ends up at. */
.tmr-m-hero__photo {
  position: relative;
  z-index: 1;
  margin: 1.2rem -1.35rem 0;
  line-height: 0;
  background: #e5cdb7;
}

/* Feather the bottom edge with an overlay rather than `mask-image` on the
   image: masking an <img> drops out of some GPU compositing paths, and the
   overlay renders identically here because the backdrop is a known flat
   colour. */
.tmr-m-hero__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(229, 205, 183, 0) 0%, #e5cdb7 92%);
  pointer-events: none;
}

.tmr-m-hero__photo img {
  width: 100%;
  height: auto !important;
  max-width: 26rem;
  margin: 0 auto;
  display: block;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.tmr-m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tmr-m-btn:active { transform: scale(0.97); }

.tmr-m-btn--primary {
  background: var(--tmr-brown);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(121, 47, 20, 0.28);
}

.tmr-m-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--tmr-brown) !important;
  border: 1.5px solid var(--tmr-brown);
}

.tmr-m-btn--wa {
  background: var(--tmr-wa);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(31, 170, 83, 0.3);
}

.tmr-m-btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}

/* ==========================================================================
   5. Category grid — index #features013-d (6 tiles, 2-up)
   ========================================================================== */

section.features13 .mbr-section-content {
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  row-gap: 1.1rem;
}

section.features13 .item.features-image {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

section.features13 .item-img {
  border-radius: var(--tmr-radius);
  overflow: hidden;
  box-shadow: var(--tmr-shadow);
  background: var(--tmr-sand-light);
}

section.features13 .item-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

section.features13 .item-content {
  margin-top: 0.55rem !important;
  text-align: center;
}

section.features13 .item-title {
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
  margin-bottom: 0 !important;
  color: var(--tmr-brown);
}

/* ==========================================================================
   6. Seasonal Gifts — index #news08-4
   --------------------------------------------------------------------------
   Three cards. A 2-up grid would leave an orphan, so this becomes a
   swipeable rail with the next card peeking in to signal the gesture.
   ========================================================================== */

#news08-4 .container > .row:last-child {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.85rem;
  margin: 0 -1.15rem;
  padding: 0.25rem 1.15rem 0.5rem;
}

#news08-4 .container > .row:last-child::-webkit-scrollbar { display: none; }

#news08-4 .item.features-image {
  flex: 0 0 76%;
  max-width: 76%;
  width: 76%;
  padding: 0;
  scroll-snap-align: center;
}

#news08-4 .item-wrapper {
  background: var(--tmr-cream);
  border: 1px solid var(--tmr-line);
  border-radius: var(--tmr-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#news08-4 .item-img {
  margin-bottom: 0 !important;
}

#news08-4 .item-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

#news08-4 .item-content {
  padding: 0.85rem 0.95rem 1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* "Crafts" / "Branding" eyebrow */
#news08-4 .item-title {
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.3rem !important;
}

#news08-4 .item-subtitle {
  font-size: 1.06rem !important;
  line-height: 1.28 !important;
  margin-bottom: 0.75rem !important;
}

#news08-4 .item-footer {
  margin-top: auto;
}

#news08-4 .item-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 700;
}

/* ==========================================================================
   7. Product grids — page1/3/4/5/6/7/8/9/10/11 (.news08, 2-up)
   ========================================================================== */

body:not(.tmr-home) section.news08 .container > .row:last-child {
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  row-gap: 1.35rem;
}

body:not(.tmr-home) section.news08 .item.features-image {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

body:not(.tmr-home) section.news08 .item-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body:not(.tmr-home) section.news08 .item-img {
  border-radius: var(--tmr-radius-sm);
  overflow: hidden;
  margin-bottom: 0.55rem !important;
  background: var(--tmr-sand-light);
  box-shadow: var(--tmr-shadow);
}

/* Sources run 0.56–1.0 aspect. Cropping to one ratio keeps the grid tidy;
   biasing above centre keeps the blooms rather than the vase on the tall ones.
   The height release is in section 7b below — without it Mobirise's fixed
   400/500px height wins and this aspect-ratio is ignored. */
body:not(.tmr-home) section.news08 .item-img img {
  width: 100%;
  aspect-ratio: var(--tmr-card-ratio);
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

/* Field usage is not consistent across the pages — item-title holds a price
   on some and a category on others — so keep Mobirise's DOM order and let
   mobile read the same way as desktop, rather than reordering on a guess. */
body:not(.tmr-home) section.news08 .item-content {
  padding: 0 0.15rem;
}

body:not(.tmr-home) section.news08 .item-title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--tmr-brown);
  margin-bottom: 0.15rem !important;
}

body:not(.tmr-home) section.news08 .item-subtitle {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.2rem !important;
}

body:not(.tmr-home) section.news08 .mbr-text {
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
  opacity: 0.65;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   7b. Release Mobirise's fixed image height
   --------------------------------------------------------------------------
   For every news08 section Mobirise emits, per section id:

       .cid-xxxx img, .cid-xxxx .item-img { height: 100%; height: 500px; }

   That pixel height is written for the desktop column width and never
   changes, so on a 171px-wide mobile card the photo becomes a 171x500 strip
   (a 0.34 ratio). It also silently defeats `aspect-ratio`, which only takes
   effect when one axis is auto. Releasing the height hands control back to
   the ratio above.
   ========================================================================== */

section.news08 .item-img,
section.news08 .item-img img,
section.news08 .item-img a,
section.features13 .item-img,
section.features13 .item-img img,
section.features13 .item-img a {
  height: auto !important;
  max-height: none !important;
}

/* Seasonal Gifts on the home page is the same shape as a product card. */
#news08-4 .item-img img {
  aspect-ratio: var(--tmr-card-ratio);
  object-fit: cover;
  object-position: 50% 42%;
  width: 100%;
  display: block;
}

/* ==========================================================================
   8. Info & Delivery tabs — #tabs1-2o
   ========================================================================== */

section.content18 .nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  border: 0 !important;
  margin-bottom: 1.1rem !important;
}

/* Mobirise gives the active tab extra padding, so the two pills come out at
   different heights side by side. Stretch both to the grid row. */
section.content18 .nav-tabs .nav-item {
  margin: 0 !important;
  width: 100%;
  display: flex;
}

section.content18 .nav-tabs .nav-link {
  height: 100%;
}

section.content18 .nav-tabs .nav-link {
  width: 100%;
  text-align: center;
  font-size: 0.85rem !important;
  padding: 0.66rem 0.4rem !important;
  border-radius: 999px !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  /* Mobirise leaves the inactive tab as bare text, which doesn't read as
     tappable. Give it an outline; the active state keeps its filled pill. */
  border: 1.5px solid rgba(255, 250, 236, 0.5) !important;
}

section.content18 .nav-tabs .nav-link.active {
  border-color: var(--tmr-cream) !important;
}

section.content18 .tab-content {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--tmr-radius);
  padding: 1rem 1.05rem;
}

section.content18 .mbr-text {
  font-size: 0.87rem !important;
  line-height: 1.75 !important;
}

/* ==========================================================================
   9. About — #header14-2
   ========================================================================== */

section.header14 .card-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--tmr-radius);
  padding: 1.5rem 1.25rem !important;
  box-shadow: var(--tmr-shadow);
}

section.header14 .card-title {
  font-size: 1.72rem !important;
  margin-bottom: 0.85rem !important;
}

section.header14 .mbr-text {
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

/* ==========================================================================
   10. Contacts — #contacts3-1
   ========================================================================== */

/* Mobirise stacks this row column-reverse, so the map lands above the phone
   number. On a phone the contact details are the point — put them first. */
section.contacts3 .row.justify-content-center {
  flex-direction: column !important;
}

section.contacts3 .card {
  padding: 0 !important;
  margin-bottom: 1rem;
}

section.contacts3 .text-wrapper {
  background: var(--tmr-cream);
  border: 1px solid var(--tmr-line);
  border-radius: var(--tmr-radius);
  padding: 1.15rem 1.15rem 0.5rem !important;
}

section.contacts3 .card-title {
  font-size: 1.08rem !important;
}

section.contacts3 .mbr-text {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

section.contacts3 .map-wrapper,
section.contacts3 .google-map {
  padding: 0 !important;
}

section.contacts3 .google-map {
  height: 240px !important;
  border-radius: var(--tmr-radius);
  overflow: hidden;
}

section.contacts3 .google-map iframe {
  height: 240px !important;
  width: 100%;
}

/* ==========================================================================
   11. Clients — .clients04
   --------------------------------------------------------------------------
   col-12 on mobile means one logo per row: 11 logos = ~2100px of scrolling.
   A 3-up chip grid puts the whole roster on one screen.
   ========================================================================== */

section.clients04 .container > .row:last-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0;
}

section.clients04 .item.features-image {
  flex: none;
  max-width: none;
  width: auto;
  padding: 0;
}

section.clients04 .item-wrapper {
  height: 100%;
}

/* Every client logo is white artwork on transparency, drawn for the brown
   ground — so the chip has to stay dark or the logos disappear. */
section.clients04 .item-img {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  height: 100%;
  min-height: 60px;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.55rem;
}

section.clients04 .item-img img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

section.footer3 .social-row {
  gap: 0.5rem;
}

section.footer3 .soc-item a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(121, 47, 20, 0.07);
}

/* ==========================================================================
   13. Sticky action bar
   ========================================================================== */

.tmr-m-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 236, 0.96);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-top: 1px solid var(--tmr-line);
  box-shadow: 0 -4px 18px rgba(121, 47, 20, 0.09);
}

.tmr-m-bar .tmr-m-btn { min-height: 44px; }

.tmr-m-bar__wa {
  flex: 1 1 auto;
  font-size: 0.88rem;
}

.tmr-m-bar__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(121, 47, 20, 0.08);
  border: 1px solid var(--tmr-line);
  color: var(--tmr-brown) !important;
}

.tmr-m-bar__icon .tmr-m-btn__icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* Mobirise pins scroll-to-top with left:0;right:0, so the arrow floats in the
   middle of the content. Tuck it into the corner, above the action bar. */
#scrollToTop {
  left: auto !important;
  right: 12px !important;
  width: auto !important;
  bottom: calc(var(--tmr-bar-h) + 12px) !important;
}

#scrollToTop a {
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 250, 236, 0.94);
  border: 1px solid var(--tmr-line);
  box-shadow: var(--tmr-shadow);
}

} /* end @media (max-width: 991.98px) */


/* --------------------------------------------------------------------------
   Small phones (<=360px) — one more notch down.
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .tmr-m-hero__badges li { font-size: 0.69rem; padding: 0.32rem 0.6rem; }
  .tmr-m-hero { padding-left: 1rem; padding-right: 1rem; }
  .tmr-m-btn { font-size: 0.84rem; padding: 0 0.9rem; }
  section.clients04 .container > .row:last-child { gap: 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tmr-m-btn, section.features13 .item-img img { transition: none !important; }
}
