/*
Theme Name: Mille og Tulle
Description: Hyggeligt, grønt blok-tema til milleogtulle.dk.
Version: 1.0.6
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: milleogtulle
*/

body { -webkit-font-smoothing: antialiased; }
.home .mt-main > .wp-block-post-content > * { margin-block: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.mt-header, .mt-hero, .mt-section, .mt-om, .mt-footer, .mt-band, .mt-page { padding-inline: 24px; }

/* Header */
.mt-header { padding-block: 18px; }
.mt-header > .wp-block-group { gap: 12px 32px; }
.mt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--ink); }
.mt-brand__paw { width: 46px; height: 46px; border-radius: 50%; background: var(--wp--preset--color--forest); color: var(--wp--preset--color--mint); display: flex; align-items: center; justify-content: center; }
.mt-brand__name { font-family: var(--wp--preset--font-family--fredoka); font-size: 1.6875rem; font-weight: 600; }
.mt-nav { font-weight: 700; gap: 26px; }
.mt-nav a { color: var(--wp--preset--color--ink); text-decoration: none; padding-block: 10px; }
.mt-nav a:hover, .mt-nav .current-menu-item a { color: var(--wp--preset--color--forest); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.mt-nav .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--ink); width: 44px; height: 44px; justify-content: center; align-items: center; }
.mt-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.mt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--mint) !important; color: var(--wp--preset--color--ink) !important; padding: 20px 24px 32px !important; }
.mt-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 12px; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mt-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.mt-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 72px !important; }
.mt-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; }
.mt-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.mt-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; box-sizing: border-box; padding: 18px 0 !important; font-family: var(--wp--preset--font-family--fredoka); font-size: 1.75rem; font-weight: 600; text-decoration: none !important; }

/* Hero */
.mt-hero { padding-block: 40px 96px; }
.mt-hero__cols { gap: 56px; }
.mt-chip { display: inline-block; background: var(--wp--preset--color--chip); color: var(--wp--preset--color--leaf); font-weight: 700; font-size: 0.875rem; padding: 8px 16px; border-radius: 999px; margin: 0; }
.mt-hero h1 { margin-block: 20px 22px; }
.mt-lead { font-size: 1.25rem; color: var(--wp--preset--color--muted); max-width: 540px; margin-bottom: 28px; }
.mt-hero .is-style-outline .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--line); }
.mt-hero .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--forest); }
.mt-stats { gap: 28px; margin-top: 28px !important; }
.mt-stats p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.mt-stats strong { display: block; font-family: var(--wp--preset--font-family--fredoka); font-size: 1.875rem; font-weight: 600; color: var(--wp--preset--color--forest); line-height: 1.2; }
.mt-hero__img { position: relative; max-width: 460px; margin: 0 auto !important; }
.mt-hero__img::before { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--sage); border-radius: 58% 42% 47% 53% / 52% 46% 54% 48%; transform: rotate(-6deg) scale(1.04); }
.mt-hero__img img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 58%; border-radius: 46% 54% 52% 48% / 48% 52% 48% 52%; display: block; }

/* Sektioner + kort */
.mt-section { padding-block: 16px 96px; }
.mt-section--green { background: var(--wp--preset--color--sage); padding-block: 88px; }
.mt-section__head { gap: 12px 24px; align-items: flex-end !important; }
.mt-section__head h2 { margin: 0; }
.mt-section__head p { margin: 6px 0 0; font-size: 1.125rem; color: var(--wp--preset--color--muted); }
.mt-section__more { font-weight: 700; font-size: 1.0625rem; margin: 0; }
.mt-cards { gap: 24px; margin-top: 36px !important; }
.mt-cards.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 960px) { .mt-cards.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .mt-cards.is-layout-grid { grid-template-columns: 1fr !important; } }
.mt-card { position: relative; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(34,51,31,.06), 0 10px 28px rgba(34,51,31,.07); transition: transform .2s ease, box-shadow .2s ease; }
.mt-section--green .mt-card { background: var(--wp--preset--color--mint); box-shadow: none; }
.mt-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(34,51,31,.08), 0 16px 34px rgba(34,51,31,.12); }
.mt-card > * { margin: 0 !important; }
.mt-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mt-card__body { padding: 20px 24px 24px; }
.mt-card__body > * { margin: 0 0 4px !important; }
.mt-card h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mt-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.mt-card h3 a:focus-visible::after { outline: 3px solid var(--wp--preset--color--forest); outline-offset: -3px; }
.mt-card__count { color: var(--wp--preset--color--muted); font-size: 0.9375rem; font-weight: 700; }
.mt-card__video { position: absolute; top: 14px; left: 14px; background: rgba(34,51,31,.82); color: #fff; font-size: 0.8125rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; z-index: 1; }

/* Om */
.mt-om { padding-block: 96px; }
.mt-om__cols { gap: 48px; }
.mt-om__img img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; display: block; }
.mt-kicker { font-weight: 700; color: var(--wp--preset--color--leaf); font-size: 0.9375rem; margin: 0; }
.mt-pills { gap: 10px; }
.mt-pills .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--line); padding: 10px 18px; font-size: 1rem; }
.mt-pills .wp-block-button__link:hover { border-color: var(--wp--preset--color--forest); background: #fff; color: var(--wp--preset--color--forest); }

/* Undersider: titel + gallerier */
.mt-band { background: var(--wp--preset--color--sage); padding-block: 56px 48px; }
.mt-band h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.mt-page { padding-block: 48px 96px; }
.mt-page .wp-block-gallery.has-nested-images { gap: 12px; }
.mt-page .wp-block-gallery.has-nested-images figure.wp-block-image img,
.mt-page .wp-block-image img { border-radius: 16px; }
.mt-page .wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: 16px; overflow: hidden; }
.mt-page .wp-block-video { margin-block: 0 24px; }
.mt-page .wp-block-video video { width: 100%; border-radius: 16px; background: #000; }
.mt-page p:empty { display: none; }
.mt-page > .mt-cards, .mt-page .mt-cards { margin-top: 0 !important; }

/* Video på forsiden */
.mt-video { padding-inline: 24px; padding-block: 8px 96px; }
.mt-video h2 { margin: 0; }
.mt-video .mt-lead { max-width: 1200px; margin-top: 8px; margin-bottom: 28px; }
.mt-video .wp-block-video { margin: 0; }
.mt-video video { width: 100%; display: block; border-radius: 24px; background: var(--wp--preset--color--ink); box-shadow: 0 2px 4px rgba(34,51,31,.08), 0 18px 40px rgba(34,51,31,.14); }

/* Footer */
.mt-footer { background: var(--wp--preset--color--ink); color: #D5E3CB; font-size: 0.9375rem; padding-block: 32px; }
.mt-footer > .wp-block-group { gap: 12px 32px; }
.mt-footer p { margin: 0; }
.mt-footer a { color: var(--wp--preset--color--sage); }
.mt-footer__name { font-family: var(--wp--preset--font-family--fredoka); font-size: 1.3125rem; color: #fff; }

a:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--forest); outline-offset: 2px; }
.wp-block-button__link { min-height: 44px; box-sizing: border-box; }

@media (max-width: 781px) {
	.mt-hero { padding-block: 24px 64px; }
	.mt-hero__img { max-width: 320px; }
	.mt-section { padding-block: 8px 64px; }
	.mt-section--green, .mt-om { padding-block: 64px; }
}
