/*
Theme Name: Trudi Baby Care
Theme URI: https://trudi.hr/
Author: Trudi Hrvatska
Description: Custom WordPress tema za redizajn i migraciju Trudi Hrvatska stranice.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: trudi
*/

@font-face {
  font-family: "Open Sans Trudi";
  src: url("assets/fonts/opensans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Trudi";
  src: url("assets/fonts/opensans-semibold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Patrick Hand Trudi";
  src: url("assets/fonts/patrickhandsc-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --trudi-red: #ef4123;
  --trudi-ink: #2f4050;
  --trudi-muted: #6f7f8d;
  --trudi-blue: #61c8de;
  --trudi-blue-dark: #1597a7;
  --trudi-yellow: #f8ce66;
  --trudi-green: #9acb68;
  --trudi-pink: #f7a9bc;
  --trudi-orange: #f0a24a;
  --trudi-cream: #fff9ec;
  --trudi-soft: #f7fbfc;
  --trudi-line: #e9eef0;
  --trudi-radius: 8px;
  --trudi-shadow: 0 18px 45px rgba(42, 64, 80, 0.12);
  --trudi-wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--trudi-ink);
  background: #fff;
  font-family: "Open Sans Trudi", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

:target {
  scroll-margin-top: 126px;
}

a {
  color: var(--trudi-blue-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--trudi-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 151, 167, 0.38);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: "Patrick Hand Trudi", "Open Sans Trudi", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--trudi-wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(97, 200, 222, 0.2) 0 7px, transparent 8px) 0 0 / 44px 44px,
    radial-gradient(circle at center, rgba(247, 169, 188, 0.18) 0 7px, transparent 8px) 22px 22px / 44px 44px,
    #fff;
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(47, 64, 80, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(47, 64, 80, 0.1);
}

body.admin-bar .site-top {
  top: 32px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  transition: min-height 220ms ease;
}

.site-branding {
  display: inline-flex;
  align-items: center;
}

.site-branding img {
  width: 96px;
  max-width: 96px;
  transition: width 220ms ease, max-width 220ms ease;
}

.site-header.is-scrolled .topline {
  min-height: 38px;
}

.site-header.is-scrolled .site-branding img {
  width: 50px;
  max-width: 50px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--trudi-muted);
  font-size: 0.92rem;
  line-height: 1.3;
  transition: opacity 180ms ease, font-size 220ms ease, gap 220ms ease;
}

.contact-strip a {
  color: var(--trudi-ink);
}

.site-header.is-scrolled .contact-strip {
  gap: 0.35rem 0.8rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

.nav-row {
  border-top: 1px solid rgba(47, 64, 80, 0.08);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: min-height 220ms ease;
}

.main-navigation ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 1rem;
  color: var(--trudi-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  border-left: 1px solid rgba(47, 64, 80, 0.07);
  transition: min-height 220ms ease, color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled .nav-inner,
.site-header.is-scrolled .main-navigation a {
  min-height: 48px;
}

.main-navigation li:last-child a {
  border-right: 1px solid rgba(47, 64, 80, 0.07);
}

.main-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nav-color, var(--trudi-blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-navigation li:nth-child(5n + 1) { --nav-color: var(--trudi-red); }
.main-navigation li:nth-child(5n + 2) { --nav-color: var(--trudi-yellow); }
.main-navigation li:nth-child(5n + 3) { --nav-color: var(--trudi-green); }
.main-navigation li:nth-child(5n + 4) { --nav-color: var(--trudi-blue); }
.main-navigation li:nth-child(5n + 5) { --nav-color: var(--trudi-pink); }

.main-navigation a:hover::before,
.main-navigation .current-menu-item > a::before,
.main-navigation .current_page_item > a::before {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--trudi-blue-dark);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
.wp-block-button__link,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  border: 0;
  border-radius: var(--trudi-radius);
  background: var(--trudi-red);
  box-shadow: 0 10px 24px rgba(239, 65, 35, 0.18);
  cursor: pointer;
}

.button:hover,
.button:focus {
  color: #fff;
  background: #d9361c;
}

.button.secondary {
  color: var(--trudi-ink);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--trudi-line);
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--trudi-blue-dark);
  box-shadow: inset 0 0 0 2px var(--trudi-blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background:
    linear-gradient(90deg, rgba(255, 249, 236, 0.98) 0%, rgba(255, 249, 236, 0.82) 46%, rgba(255, 249, 236, 0.18) 72%),
    var(--hero-image) center right / cover no-repeat,
    var(--trudi-cream);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 2rem;
  min-height: 610px;
  align-items: center;
  padding: 4.5rem 0 3rem;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--trudi-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 540px;
  color: var(--trudi-muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.soft-card,
.feature-card,
.product-card,
.ingredient-card,
.advice-card,
.info-card {
  border: 1px solid rgba(47, 64, 80, 0.08);
  border-radius: var(--trudi-radius);
  background: #fff;
  box-shadow: var(--trudi-shadow);
}

.hero-highlights li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 1rem 1.1rem;
  color: var(--trudi-blue-dark);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  border: 2px solid rgba(97, 200, 222, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.92) 0 18px, transparent 19px),
    linear-gradient(135deg, #effbfe, #d9f4f9);
  box-shadow: 0 14px 34px rgba(21, 151, 167, 0.12);
}

.hero-highlights li:nth-child(2) {
  border-color: rgba(185, 220, 133, 0.46);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9) 0 18px, transparent 19px),
    linear-gradient(135deg, #f4fbeb, #e2f4cb);
}

.hero-highlights li:nth-child(3) {
  border-color: rgba(247, 169, 188, 0.48);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9) 0 18px, transparent 19px),
    linear-gradient(135deg, #fff1f5, #fbe1e9);
}

.hero-highlights li:nth-child(4) {
  border-color: rgba(248, 206, 102, 0.5);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9) 0 18px, transparent 19px),
    linear-gradient(135deg, #fff9df, #f9edbc);
}

.hero-visual {
  align-self: end;
  justify-self: center;
  width: min(420px, 100%);
  padding: 1rem;
  text-align: center;
}

.hero-visual img {
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(47, 64, 80, 0.14));
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section.compact {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.section.blue-band {
  color: #fff;
  background:
    radial-gradient(ellipse at 8% 18%, rgba(255, 255, 255, 0.16) 0 42px, transparent 43px),
    radial-gradient(ellipse at 85% 82%, rgba(255, 255, 255, 0.12) 0 56px, transparent 57px),
    var(--trudi-blue-dark);
}

.info-card.soft-card {
  color: var(--trudi-ink);
}

.info-card.soft-card h3 {
  color: var(--trudi-blue-dark);
}

.info-card.soft-card p {
  color: #4d5f66;
}

.section.orange-band {
  color: #fff;
  background:
    radial-gradient(ellipse at 16% 18%, rgba(255, 255, 255, 0.16) 0 54px, transparent 55px),
    radial-gradient(ellipse at 76% 72%, rgba(255, 255, 255, 0.14) 0 46px, transparent 47px),
    #dd6423;
}

.section.soft-bg {
  background:
    radial-gradient(circle at center, rgba(97, 200, 222, 0.12) 0 5px, transparent 6px) 0 0 / 38px 38px,
    var(--trudi-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-heading p {
  color: var(--trudi-muted);
}

.blue-band .section-heading p,
.orange-band .section-heading p {
  color: rgba(255, 255, 255, 0.86);
}

.heading-stars {
  color: var(--trudi-blue);
  letter-spacing: 0;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 1.4rem;
  text-align: center;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  color: var(--trudi-ink);
  font-family: "Patrick Hand Trudi", sans-serif;
  font-size: 2.2rem;
  border-radius: 50%;
  background: var(--card-color, var(--trudi-yellow));
}

.feature-card:nth-child(5n + 1) { --card-color: #fff2a8; }
.feature-card:nth-child(5n + 2) { --card-color: #cfeee7; }
.feature-card:nth-child(5n + 3) { --card-color: #f8ced9; }
.feature-card:nth-child(5n + 4) { --card-color: #cceefa; }
.feature-card:nth-child(5n + 5) { --card-color: #fde2be; }

.product-card,
.ingredient-card,
.advice-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.ingredient-card:hover,
.advice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(42, 64, 80, 0.16);
}

.product-card-image {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(97, 200, 222, 0.12), rgba(248, 206, 102, 0.16)),
    #fff;
}

.product-card-image img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.product-card-body,
.ingredient-card-body,
.advice-card-body {
  padding: 1.2rem;
}

.advice-card-body {
  display: grid;
  gap: 0.75rem;
}

.product-card h3,
.ingredient-card h3,
.advice-card h3 {
  font-size: 1.55rem;
}

.advice-card h3 {
  margin-bottom: 0;
}

.advice-card-summary {
  margin: 0;
  color: var(--trudi-muted);
}

.orange-band .advice-card-summary {
  display: none;
}

.advice-readmore {
  justify-self: start;
  color: var(--trudi-blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.advice-readmore::after {
  content: " ->";
}

.card-subtitle {
  color: var(--trudi-muted);
  font-size: 0.94rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pill,
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  color: var(--trudi-ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  background: #fff7db;
}

.pill.blue { background: #dff6fb; }
.pill.green { background: #e5f3d8; }
.pill.pink { background: #fde5ec; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-pill {
  border: 1px solid transparent;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--trudi-line);
}

.filter-pill.is-active,
.filter-pill:hover,
.filter-pill:focus {
  color: #fff;
  background: var(--trudi-blue-dark);
  box-shadow: none;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(97, 200, 222, 0.92), rgba(21, 151, 167, 0.94)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0 8px, transparent 9px) 0 0 / 52px 52px;
}

.page-hero .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 150px;
  padding: 2.3rem 0;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #fff;
}

.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 1.2rem;
}

.sidebar-box {
  padding: 1.2rem;
  border: 1px solid var(--trudi-line);
  border-radius: var(--trudi-radius);
  background: #fff;
}

.sidebar-box h2,
.sidebar-box h3 {
  font-size: 1.55rem;
}

.sidebar-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-list li + li {
  border-top: 1px dashed var(--trudi-line);
}

.sidebar-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0;
  font-weight: 700;
}

.product-single {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.product-single-image {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 1.5rem;
  border: 3px solid var(--trudi-blue);
  border-radius: var(--trudi-radius);
  background: #fff;
}

.product-single-image img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-single-summary .lead {
  color: var(--trudi-muted);
  font-size: 1.1rem;
}

.facts {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.fact {
  padding: 1rem;
  border-radius: var(--trudi-radius);
  background: #f7fbfc;
}

.fact strong {
  display: block;
  color: var(--trudi-red);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tabs-like {
  margin-top: 2.2rem;
}

.tab-label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #fff;
  font-weight: 700;
  border-radius: var(--trudi-radius) var(--trudi-radius) 0 0;
  background: var(--trudi-orange);
}

.tab-panel {
  padding: 1.4rem;
  border: 1px solid var(--trudi-line);
  border-radius: 0 var(--trudi-radius) var(--trudi-radius) var(--trudi-radius);
  background: #fff;
}

.ingredient-card {
  text-align: center;
}

.ingredient-card-image {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.25rem;
  background: #f8fbfc;
}

.ingredient-card-image img {
  max-height: 180px;
  object-fit: contain;
}

.ingredient-single {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ingredient-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 1.5rem;
  border-radius: 50%;
  background: #fff7db;
}

.ingredient-visual img {
  max-height: 270px;
  object-fit: contain;
}

.advice-list {
  display: grid;
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.advice-list .advice-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.advice-card-image {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  background: #dff6fb;
}

.advice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advice-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(21, 151, 167, 0.16), rgba(21, 151, 167, 0.86));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.advice-card:hover .advice-card-overlay,
.advice-card:focus-within .advice-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.advice-card-date {
  justify-self: start;
  padding: 0.28rem 0.55rem;
  color: var(--trudi-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.advice-card-excerpt {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.advice-card-more {
  justify-self: start;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-content {
  font-size: 1.05rem;
}

.article-content img {
  border-radius: var(--trudi-radius);
}

.about-layout,
.contact-layout,
.where-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image,
.contact-card,
.where-card {
  overflow: hidden;
  border-radius: var(--trudi-radius);
  background: #fff;
  box-shadow: var(--trudi-shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.contact-card,
.where-card {
  padding: 1.4rem;
}

.where-search-panel {
  display: grid;
  gap: 0.65rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.where-search-panel label {
  color: var(--trudi-ink);
  font-weight: 700;
}

.where-search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  color: var(--trudi-ink);
  border: 1px solid var(--trudi-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(47, 64, 80, 0.08);
}

.where-empty {
  margin: 0;
  color: var(--trudi-red);
  font-weight: 700;
}

.where-table-wrap {
  overflow-x: auto;
}

.where-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--trudi-line);
  border-radius: var(--trudi-radius);
  background: #fff;
  box-shadow: var(--trudi-shadow);
}

.where-table th,
.where-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--trudi-line);
}

.where-table th {
  color: var(--trudi-blue-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
  background: #eefbfe;
}

.where-table tr:last-child td {
  border-bottom: 0;
}

.where-table tr[hidden] {
  display: none !important;
}

.where-table a {
  font-weight: 700;
}

.contact-methods {
  display: grid;
  gap: 0.8rem;
}

.contact-methods a,
.contact-methods span {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: var(--trudi-radius);
  background: #f8fbfc;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 0;
  background:
    url("assets/images/footer-doodles.png") center top / cover no-repeat,
    #fff;
}

.footer-cloud {
  height: 38px;
  margin-top: -4rem;
  background:
    radial-gradient(ellipse at 3% 100%, #fff 0 44px, transparent 45px),
    radial-gradient(ellipse at 12% 100%, #fff 0 56px, transparent 57px),
    radial-gradient(ellipse at 24% 100%, #fff 0 42px, transparent 43px),
    radial-gradient(ellipse at 81% 100%, #fff 0 48px, transparent 49px),
    radial-gradient(ellipse at 91% 100%, #fff 0 64px, transparent 65px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
  gap: 2rem;
  padding: 3.5rem 0;
}

.footer-grid h2,
.footer-grid h3 {
  font-size: 1.5rem;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  color: #fff;
  background: var(--trudi-blue-dark);
}

.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  color: #fff;
  font-weight: 700;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--trudi-line);
  border-radius: var(--trudi-radius);
  background: #fff;
}

@media (max-width: 1020px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-sidebar,
  .product-single,
  .ingredient-single,
  .about-layout,
  .contact-layout,
  .where-layout,
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero .wrap {
    min-height: 0;
  }

  .hero-visual {
    display: none;
  }

  .product-single-image {
    min-height: 400px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topline {
    min-height: 74px;
  }

  .contact-strip {
    display: none;
  }

  .nav-inner {
    justify-content: flex-end;
    min-height: 0;
  }

  .menu-toggle {
    position: absolute;
    right: 0;
    bottom: 11px;
    display: block;
  }

  .main-navigation {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 6rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
  }

  body.nav-open .main-navigation {
    display: block;
  }

  .main-navigation ul {
    display: grid;
    gap: 0.4rem;
  }

  .main-navigation a,
  .main-navigation li:last-child a {
    min-height: 48px;
    border: 0;
    border-radius: var(--trudi-radius);
    background: #f8fbfc;
  }

  .site-header.is-scrolled .topline {
    min-height: 40px;
  }

  .site-header.is-scrolled .nav-inner,
  .site-header.is-scrolled .main-navigation a {
    min-height: 44px;
  }

  .page-hero .wrap {
    display: grid;
    gap: 0.8rem;
  }

  .hero-highlights,
  .grid.two,
  .grid.three,
  .grid.four,
  .advice-list .advice-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(255, 249, 236, 0.98), rgba(255, 249, 236, 0.82)),
      var(--hero-image) center / cover no-repeat,
      var(--trudi-cream);
  }

  .hero .wrap {
    padding-top: 3.2rem;
  }

  .advice-card-overlay {
    display: none;
  }

  .orange-band .advice-card-summary {
    display: block;
  }

  .footer-bottom .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-top {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .where-table-wrap {
    overflow: visible;
  }

  .where-table {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .where-table,
  .where-table tbody,
  .where-table tr,
  .where-table td {
    display: block;
    width: 100%;
  }

  .where-table thead {
    display: none;
  }

  .where-table tr {
    padding: 0.95rem;
    border: 1px solid var(--trudi-line);
    border-radius: var(--trudi-radius);
    background: #fff;
    box-shadow: var(--trudi-shadow);
  }

  .where-table tr + tr {
    margin-top: 0.9rem;
  }

  .where-table tr[hidden] {
    display: none !important;
  }

  .where-table td {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--trudi-line);
  }

  .where-table td:last-child {
    border-bottom: 0;
  }

  .where-table td::before {
    content: attr(data-label);
    color: var(--trudi-blue-dark);
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(var(--trudi-wrap), calc(100% - 1.25rem));
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .wp-block-button__link {
    width: 100%;
  }

  .product-card-image {
    min-height: 240px;
  }

  .product-single-image {
    min-height: 320px;
  }
}
