/*
Theme Name: Food Machines
Theme URI: 
Author: Milan
Author URI: 
Description: Custom catalogue theme for Food Machines
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.4.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: food-machines
Tags: block-patterns, custom-logo, editor-style, full-site-editing, style-variations, translation-ready, blog, one-column, e-commerce

This theme, like WordPress, is licensed under the GPL.
*/

/* ============================================================
   CSS Reset
   Modern, minimal reset as a foundation.
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* color / background-color は theme.json styles.color で定義 */
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

button {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* ============================================================
   WordPress Block Theme Foundation
   ============================================================ */

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

/*
 * .wp-site-blocks 直下 (header/main/footer) の margin だけゼロにする。
 * .is-layout-constrained / .is-layout-flow の子はリセットしない —
 */
:where(.wp-site-blocks) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Navigation */
.wp-block-navigation-item a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   Accessibility: Focus styles
   ============================================================ */

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 0;
    border-radius: 2px;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* ============================================================
   Language-based font switching
   ============================================================ */

:lang(ja),
:lang(ja) body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* Navigation responsive open/close icons */
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
    width: 2rem;
    height: 2rem;
}

/* ============================================================
   Header

   chrome カスタムプロパティ (theme.json settings.custom.chrome)
   を使用し、スタイルバリエーションで配色を切り替え可能にする。
   ============================================================ */

.food-machines-header {
    border-bottom: 1px solid #3d4a4a;
    border-bottom: 1px solid var(--wp--custom--chrome--border);
    background-color: #2c3333;
    background-color: var(--wp--custom--chrome--background);
    color: #d4d0c8;
    color: var(--wp--custom--chrome--text);
    text-align: center;
}

.food-machines-header.wp-block-group {
    padding-top: 2rem;
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: 2rem;
    padding-bottom: var(--wp--preset--spacing--60);
    gap: 1.5rem;
    gap: var(--wp--preset--spacing--40);
}

/* ヘッダー内サイトタイトル */
.food-machines-header .wp-block-site-title,
.food-machines-header .wp-block-site-title a {
    color: #7ab0a0;
    color: var(--wp--custom--chrome--accent);
    text-decoration: none;
}

/* ヘッダー内タグライン */
.food-machines-header .wp-block-site-tagline {
    color: #6b7a7a;
    color: var(--wp--custom--chrome--muted);
}

/* ヘッダー内ナビゲーション */
.food-machines-header .wp-block-navigation,
.food-machines-header .wp-block-navigation a {
    color: #d4d0c8;
    color: var(--wp--custom--chrome--text);
}

/* Site icon */
.food-machines-site-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ab0a0;
    color: var(--wp--custom--chrome--accent);
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
}

.food-machines-site-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Footer
   ============================================================ */

.food-machines-footer.wp-block-group {
    border-top: 1px solid #3d4a4a;
    border-top: 1px solid var(--wp--custom--chrome--border);
    background-color: #2c3333;
    background-color: var(--wp--custom--chrome--background);
    color: #d4d0c8;
    color: var(--wp--custom--chrome--text);
    padding-top: 4rem;
    padding-top: var(--wp--preset--spacing--70);
    padding-bottom: 4rem;
    padding-bottom: var(--wp--preset--spacing--70);
}

/* コピーライト + サイトタイトル テキスト */
.food-machines-footer-copyright,
.food-machines-footer-copyright .wp-block-site-title,
.food-machines-footer-copyright .wp-block-site-title a,
.food-machines-footer-copyright p {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7a7a;
    color: var(--wp--custom--chrome--muted);
    text-decoration: none;
}

/* ソーシャルリンク */
.food-machines-social-links.wp-block-social-links .wp-block-social-link a {
    color: #6b7a7a;
    color: var(--wp--custom--chrome--muted);
    transition: color 0.2s ease;
}

.food-machines-social-links.wp-block-social-links .wp-block-social-link a:hover {
    color: #7ab0a0;
    color: var(--wp--custom--chrome--accent);
}

/* is-style-logos-only のアイコン色を currentColor で統一 */
.food-machines-social-links.wp-block-social-links.is-style-logos-only .wp-block-social-link-anchor svg {
    fill: currentColor;
}

/* ============================================================
   main
   ============================================================ */
.food-machines-main.wp-block-group {
    flex: 1;
    padding: clamp(2rem, 5vw, 5rem) 1.5rem;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   Hero section
   ============================================================ */

.food-machines-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.food-machines-hero-label,
.food-machines-hero-label a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.food-machines-hero-divider.wp-block-separator {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    border-top-width: 2px;
    max-width: 4rem;
    margin-inline: auto;
    opacity: 1;
}

/* ============================================================
   Featured image: fallback placeholder (no thumbnail set)
   ============================================================ */

.food-machines-no-thumbnail {
    aspect-ratio: 16 / 9;
    background-color: #f2efea;
    background-color: var(--wp--preset--color--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    overflow: hidden;
}

.food-machines-no-thumbnail .food-machines-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    opacity: 0.3;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.food-machines-no-thumbnail .food-machines-thumbnail-placeholder svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Post list: front page & archive
   ============================================================ */

/* Grayscale + zoom on hover */
.food-machines-monotone {
    overflow: hidden;
    border-radius: 0.25rem;
}

.food-machines-monotone img {
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 0.5s ease-in-out, transform 0.7s ease;
}

.food-machines-article:hover .food-machines-monotone img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Post title hover color */
.food-machines-article .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.food-machines-article:hover .wp-block-post-title a {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.food-machines-post-excerpt .wp-block-post-excerpt__excerpt {
    padding: 0 1rem;
    color: var(--wp--preset--color--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Read More button */
.food-machines-read-more.wp-block-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    border: 1px solid rgba(58, 96, 96, 0.25);
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.food-machines-read-more.wp-block-read-more:hover {
    background-color: #3a6060;
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
    color: var(--wp--preset--color--surface);
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
}

/* Article meta: dot separator between date and category */
.food-machines-article-meta {
    display: flex;
    align-items: flex-start;
}

.food-machines-article-meta .wp-block-post-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.food-machines-article-meta .wp-block-post-date {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--wp--preset--color--muted);
    min-width: max-content;
}

.food-machines-article-meta .wp-block-post-terms::before {
    content: '';
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background-color: rgba(58, 96, 96, 0.3);
    flex-shrink: 0;
}

/* ============================================================
   Post list: index (text-only list)
   ============================================================ */

.food-machines-list-item .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.food-machines-list-item:hover .wp-block-post-title a {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.food-machines-list-excerpt .wp-block-post-excerpt__excerpt {
    color: var(--wp--preset--color--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Query pagination spacing */
.wp-block-query-pagination {
    margin-top: 3rem;
    padding: 3rem 0;
    gap: 1rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
    margin-left: 1rem;
}

/* ============================================================
   Single post
   ============================================================ */

.food-machines-single-article.wp-block-group {
    width: 100%;
    margin: 0 auto;
    max-width: var(--wp--style--global--wide-size);
}

/* Category badge */
.food-machines-category-badge.wp-block-post-terms a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(58, 96, 96, 0.08);
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border-radius: 0.125rem;
}

/* Post body: serif font */
.food-machines-post-content p,
.food-machines-post-content li,
.food-machines-post-content blockquote {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Pullquote / blockquote styling */
.food-machines-post-content .wp-block-pullquote,
.food-machines-post-content .wp-block-quote {
    border-color: #e8e4de;
    border-color: var(--wp--preset--color--border);
    font-family: var(--wp--preset--font-family--serif);
    font-style: italic;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.food-machines-post-content.wp-block-post-content .wp-block-paragraph {
    max-width: var(--wp--style--global--wide-size);
}

/* Post navigation */
.food-machines-post-nav.wp-block-post-navigation-link a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
}

.food-machines-post-nav.wp-block-post-navigation-link .wp-block-post-navigation-link__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    transition: color 0.2s ease;
}

.food-machines-post-nav.wp-block-post-navigation-link a:hover .wp-block-post-navigation-link__label {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.food-machines-post-nav.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow {
    display: none;
}


.wp-block-separator {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    border-top-width: 2px;
    margin-inline: auto;
    opacity: 1;
    margin: 3rem 0;
}

.food-machines-more-posts.wp-block-query {
    padding: 2rem 0;
}

.food-machines-more-post.wp-block-group {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.food-machines-more-post.wp-block-group .wp-block-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: calc(1.4 * 2em); /* line-height × 2行 */
}

.food-machines-more-post.wp-block-group .wp-block-post-title a {
    display: block;
}

.food-machines-more-post.wp-block-group .wp-block-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4 * 3em); /* line-height × 2行 */
}

.wp-block-post-author {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: .5rem;
    padding: 1rem;
}


/* ============================================================
   Comments
   ============================================================ */

.food-machines-comments {
    margin-top: 3rem;
    margin-top: var(--wp--preset--spacing--60);
}

/* Comment list: spacing between items */
.food-machines-comment-list {
    list-style: none;
}

.food-machines-comment {
    padding-bottom: 1.5rem;
    padding-bottom: var(--wp--preset--spacing--40);
    margin-bottom: 1.5rem;
    margin-bottom: var(--wp--preset--spacing--40);
}

/* Avatar */
.food-machines-comment-avatar {
    flex-shrink: 0;
}

.food-machines-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author name link */
.food-machines-comment .wp-block-comment-author-name a {
    color: inherit;
    text-decoration: none;
}

.food-machines-comment .wp-block-comment-author-name a:hover {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

/* Comment content */
.food-machines-comment .wp-block-comment-content p {
    line-height: 1.7;
}

/* Reply / Edit actions */
.food-machines-comment-actions a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.food-machines-comment-actions a:hover {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

/* Nested replies: indent */
.wp-block-comment-template .wp-block-comment-template {
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e8e4de;
    border-left: 2px solid var(--wp--preset--color--border);
}

/* ============================================================
   Comment form
   ============================================================ */

.food-machines-comment-form {
    margin-top: 3rem;
    margin-top: var(--wp--preset--spacing--60);
    padding-top: 3rem;
    padding-top: var(--wp--preset--spacing--60);
    border-top: 1px solid #e8e4de;
    border-top: 1px solid var(--wp--preset--color--border);
}

.food-machines-comment-form .comment-reply-title {
    font-size: 1.5rem;
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Form fields */
.food-machines-comment-form .comment-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    margin-bottom: 0.375rem;
}

.food-machines-comment-form .comment-form input[type="text"],
.food-machines-comment-form .comment-form input[type="email"],
.food-machines-comment-form .comment-form input[type="url"],
.food-machines-comment-form .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e8e4de;
    border-color: var(--wp--preset--color--border);
    border-radius: 0.25rem;
    background-color: #ffffff;
    background-color: var(--wp--preset--color--white);
    font-size: 0.875rem;
    font-size: var(--wp--preset--font-size--sm);
    color: #2c3333;
    color: var(--wp--preset--color--foreground);
    transition: border-color 0.2s ease;
    line-height: 1.6;
}

.food-machines-comment-form .comment-form input[type="text"]:focus,
.food-machines-comment-form .comment-form input[type="email"]:focus,
.food-machines-comment-form .comment-form input[type="url"]:focus,
.food-machines-comment-form .comment-form textarea:focus {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 96, 96, 0.12);
}

.food-machines-comment-form .comment-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.food-machines-comment-form .comment-form p {
    margin-bottom: 1.25rem;
}

/* Submit button */
.food-machines-comment-form .comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    background-color: #3a6060;
    background-color: var(--wp--preset--color--primary);
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.food-machines-comment-form .comment-form .form-submit .submit:hover {
    background-color: #2d4d4d;
    background-color: var(--wp--preset--color--secondary);
}

/* Cookie consent checkbox */
.food-machines-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.food-machines-comment-form .comment-form-cookies-consent label {
    display: inline;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 0.875rem;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    margin-bottom: 0;
}

/* ============================================================
   Food Machines homepage v1.1
   Reiser-inspired, image-free industrial layout.
   ============================================================ */

:root {
    --fm-red: #c71920;
    --fm-red-dark: #981017;
    --fm-black: #111111;
    --fm-charcoal: #1c1c1c;
    --fm-white: #ffffff;
    --fm-surface: #f3f5f8;
    --fm-border: #d8dce2;
    --fm-muted: #666a70;
}

/* Header */
.food-machines-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #e5e5e5;
    background: var(--fm-white);
    color: var(--fm-black);
    text-align: left;
}

.food-machines-header.wp-block-group {
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
}

.food-machines-header-inner.wp-block-group {
    min-height: 92px;
    gap: clamp(1rem, 3vw, 3rem);
}

.food-machines-brand.wp-block-group {
    min-width: max-content;
    gap: 0.8rem;
}

.food-machines-brand-copy.wp-block-group {
    gap: 0.05rem;
}

.food-machines-header .wp-block-site-title,
.food-machines-header .wp-block-site-title a {
    color: var(--fm-black);
    line-height: 1;
}

.food-machines-header .wp-block-site-tagline {
    color: var(--fm-muted);
    line-height: 1.3;
}

.food-machines-header .wp-block-navigation,
.food-machines-header .wp-block-navigation a {
    color: var(--fm-black);
}

.food-machines-primary-navigation {
    flex: 1;
}

.food-machines-primary-navigation .wp-block-navigation__container {
    gap: clamp(1rem, 2vw, 2rem);
}

.food-machines-primary-navigation .wp-block-navigation-item a {
    position: relative;
    padding-block: 0.4rem;
}

.food-machines-primary-navigation .wp-block-navigation-item a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--fm-red);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.food-machines-primary-navigation .wp-block-navigation-item a:hover::after,
.food-machines-primary-navigation .wp-block-navigation-item.current-menu-item a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.food-machines-header-action {
    flex: 0 0 auto;
}

.fm-header-button .wp-block-button__link {
    border: 1px solid var(--fm-red);
    border-radius: 0;
    background: var(--fm-red);
    color: var(--fm-white);
    padding: 0.85rem 1.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.fm-header-button .wp-block-button__link:hover {
    border-color: var(--fm-black);
    background: var(--fm-black);
    color: var(--fm-white);
}

/* Homepage foundations */
.food-machines-home {
    width: 100%;
    color: var(--fm-black);
}

.food-machines-home > * {
    margin-block-start: 0;
}

.food-machines-home .wp-block-heading,
.food-machines-home p {
    margin-block-start: 0;
}

.fm-eyebrow {
    color: var(--fm-red);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.3;
    text-transform: uppercase;
}

.fm-eyebrow-light {
    color: var(--fm-white);
}

.fm-section-title {
    max-width: 900px;
    margin-top: 0.75rem;
    color: var(--fm-black);
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-transform: uppercase;
}

.fm-section-copy {
    color: var(--fm-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
}

/* Hero */
.fm-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(760px, calc(100svh - 92px));
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: 0;
    background: var(--fm-black);
    color: var(--fm-white);
}

.fm-home-hero::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -8%;
    width: 43%;
    height: 100%;
    background: var(--fm-red);
    clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.fm-home-hero::after {
    position: absolute;
    z-index: -1;
    top: 15%;
    right: 8%;
    width: clamp(160px, 24vw, 420px);
    aspect-ratio: 1;
    border: clamp(20px, 4vw, 66px) solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

.fm-home-hero-content.wp-block-group {
    position: relative;
    z-index: 2;
    max-width: 940px;
    margin: 0;
    gap: 1.5rem;
}

.fm-home-hero .fm-eyebrow {
    color: #ff555c;
}

.fm-home-hero-title {
    max-width: 930px;
    color: var(--fm-white);
    font-size: clamp(3.25rem, 7.2vw, 7.4rem);
    font-weight: 850;
    letter-spacing: -0.065em;
    line-height: 0.9;
    text-transform: uppercase;
}

.fm-home-hero-copy {
    max-width: 650px;
    color: #c6c6c6;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.65;
}

.fm-home-actions {
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.fm-home-actions .wp-block-button__link,
.fm-button-light .wp-block-button__link {
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.fm-button-primary .wp-block-button__link {
    border: 1px solid var(--fm-red);
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-button-primary .wp-block-button__link:hover {
    border-color: var(--fm-white);
    background: var(--fm-white);
    color: var(--fm-black);
}

.fm-button-secondary .wp-block-button__link {
    border: 1px solid #6a6a6a;
    background: transparent;
    color: var(--fm-white);
}

.fm-button-secondary .wp-block-button__link:hover {
    border-color: var(--fm-white);
    background: var(--fm-white);
    color: var(--fm-black);
}

.fm-home-highlights.wp-block-group {
    position: relative;
    z-index: 2;
    margin-top: clamp(4.5rem, 9vw, 8rem);
    border-top: 1px solid #3a3a3a;
    gap: 0;
}

.fm-home-highlight.wp-block-group {
    min-height: 120px;
    padding: 1.5rem clamp(1rem, 2vw, 2rem);
    border-right: 1px solid #3a3a3a;
    gap: 0.2rem;
}

.fm-home-highlight:first-child {
    padding-left: 0;
}

.fm-home-highlight:last-child {
    border-right: 0;
}

.fm-home-highlight-value {
    color: var(--fm-white);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
}

.fm-home-highlight-label {
    color: #929292;
    font-size: 0.85rem;
}

/* Application section, based on the supplied reference block */
.fm-applications {
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(5rem, 9vw, 9rem);
    background: var(--fm-surface);
}

.fm-section-intro {
    gap: clamp(2rem, 6vw, 7rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fm-application-grid.wp-block-group {
    gap: 0;
    border-top: 1px solid var(--fm-border);
    border-left: 1px solid var(--fm-border);
}

.fm-application-card.wp-block-group {
    min-height: 250px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--fm-border);
    border-bottom: 1px solid var(--fm-border);
    gap: 0;
    transition: background-color 180ms ease, color 180ms ease;
}

.fm-card-number {
    color: var(--fm-red);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.fm-application-title {
    margin-top: auto;
    color: var(--fm-black);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fm-application-copy {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: var(--fm-white);
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0;
    transition: max-height 180ms ease, margin-top 180ms ease, opacity 180ms ease;
}

.fm-application-card:hover {
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-application-card:hover .fm-card-number,
.fm-application-card:hover .fm-application-title {
    color: var(--fm-white);
}

.fm-application-card:hover .fm-application-copy {
    max-height: 5rem;
    margin-top: 0.85rem;
    opacity: 1;
}

/* Process */
.fm-process {
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(5rem, 9vw, 9rem);
    background: var(--fm-white);
}

.fm-process-heading.wp-block-group {
    max-width: 900px;
    margin: 0;
    gap: 1.25rem;
}

.fm-process-heading .fm-section-copy {
    max-width: 650px;
}

.fm-process-grid.wp-block-group {
    gap: 1px;
    margin-top: clamp(3rem, 6vw, 5rem);
    background: var(--fm-border);
    border: 1px solid var(--fm-border);
}

.fm-process-card.wp-block-group {
    min-height: 320px;
    padding: clamp(1.75rem, 3vw, 3rem);
    background: var(--fm-white);
    gap: 1rem;
}

.fm-process-card::before {
    width: 44px;
    height: 4px;
    margin-bottom: auto;
    background: var(--fm-red);
    content: "";
}

.fm-process-step {
    color: var(--fm-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.fm-process-title {
    color: var(--fm-black);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.fm-process-card > p:last-child {
    color: var(--fm-muted);
    line-height: 1.7;
}

/* Why us */
.fm-why {
    padding-top: clamp(4rem, 8vw, 8rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
    background: var(--fm-black);
}

.fm-why-columns {
    gap: 0;
    margin-bottom: 0;
}

.fm-why-lead,
.fm-why-details {
    min-height: 540px;
}

.fm-why-lead {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 5vw, 5rem);
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-why-title {
    margin-top: 1rem;
    color: var(--fm-white);
    font-size: clamp(2.4rem, 5vw, 5.25rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-transform: uppercase;
}

.fm-why-copy {
    max-width: 560px;
    margin-top: 1.5rem;
    color: #ffe4e5;
    font-size: 1.05rem;
    line-height: 1.7;
}

.fm-why-details {
    display: grid;
    grid-template-rows: 1fr 1fr;
    background: var(--fm-charcoal);
}

.fm-why-detail.wp-block-group {
    padding: clamp(2rem, 4vw, 4rem);
    border-bottom: 1px solid #3b3b3b;
    gap: 0.75rem;
}

.fm-why-detail:last-child {
    border-bottom: 0;
}

.fm-why-detail h3 {
    color: var(--fm-white);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fm-why-detail > p:last-child {
    max-width: 520px;
    color: #a9a9a9;
    line-height: 1.65;
}

/* Services */
.fm-services {
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(5rem, 9vw, 9rem);
    background: var(--fm-surface);
}

.fm-service-grid.wp-block-group {
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.fm-service-card.wp-block-group {
    min-height: 300px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-top: 5px solid var(--fm-red);
    background: var(--fm-white);
    box-shadow: 0 12px 35px rgba(17, 17, 17, 0.06);
    gap: 1rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.fm-service-card:hover {
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
    transform: translateY(-6px);
}

.fm-service-card h3 {
    margin-top: auto;
    color: var(--fm-black);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.fm-service-card > p:not(.fm-text-link) {
    color: var(--fm-muted);
    line-height: 1.65;
}

.fm-text-link {
    color: var(--fm-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* CTA */
.fm-home-cta {
    padding-top: clamp(4rem, 7vw, 7rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-home-cta .wp-block-columns {
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 0;
}

.fm-home-cta-title {
    margin-top: 0.75rem;
    color: var(--fm-white);
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-transform: uppercase;
}

.fm-home-cta-copy {
    max-width: 620px;
    margin-top: 1.25rem;
    color: #ffe3e4;
    font-size: 1.05rem;
    line-height: 1.7;
}

.fm-button-light .wp-block-button__link {
    border: 1px solid var(--fm-white);
    background: var(--fm-white);
    color: var(--fm-black);
}

.fm-button-light .wp-block-button__link:hover {
    border-color: var(--fm-black);
    background: var(--fm-black);
    color: var(--fm-white);
}

/* Footer */
.food-machines-footer.wp-block-group {
    padding-top: clamp(4rem, 7vw, 7rem);
    padding-bottom: 2rem;
    border-top: 0;
    background: var(--fm-black);
    color: var(--fm-white);
}

.food-machines-footer-grid {
    gap: clamp(2rem, 6vw, 6rem);
}

.food-machines-footer .wp-block-site-title,
.food-machines-footer .wp-block-site-title a {
    color: var(--fm-white);
    text-decoration: none;
}

.food-machines-footer-intro {
    max-width: 560px;
    margin-top: 1.25rem;
    color: #969696;
    line-height: 1.7;
}

.food-machines-footer-heading {
    margin-bottom: 1.25rem;
    color: var(--fm-white);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.food-machines-footer-navigation,
.food-machines-footer-navigation a,
.food-machines-footer-contact {
    color: #a7a7a7;
    line-height: 1.8;
}

.food-machines-footer-navigation a:hover {
    color: var(--fm-white);
}

.food-machines-footer-rule.wp-block-separator {
    width: 100%;
    max-width: none;
    margin: clamp(3rem, 5vw, 5rem) 0 2rem;
    border-color: #383838;
    border-top-width: 1px;
}

.food-machines-footer-bottom {
    gap: 1rem 2rem;
    color: #777777;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 1100px) {
    .food-machines-header-inner.wp-block-group {
        min-height: 80px;
    }

    .food-machines-header .wp-block-site-tagline {
        display: none;
    }

    .food-machines-primary-navigation .wp-block-navigation__container {
        gap: 1rem;
    }

    .fm-home-hero {
        min-height: 680px;
    }

    .fm-application-grid.wp-block-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .food-machines-header-action {
        display: none;
    }

    .food-machines-primary-navigation {
        flex: 0 0 auto;
    }

    .food-machines-header .wp-block-navigation__responsive-container.is-menu-open {
        padding: 2rem;
        background: var(--fm-black);
        color: var(--fm-white);
    }

    .food-machines-header .wp-block-navigation__responsive-container.is-menu-open a {
        color: var(--fm-white);
        font-size: 1.25rem;
    }

    .fm-home-hero::before {
        right: -24%;
        width: 65%;
        opacity: 0.7;
    }

    .fm-home-hero::after {
        right: -5%;
        opacity: 0.7;
    }

    .fm-home-highlights.wp-block-group,
    .fm-process-grid.wp-block-group,
    .fm-service-grid.wp-block-group {
        grid-template-columns: 1fr;
    }

    .fm-home-highlight.wp-block-group {
        min-height: auto;
        padding: 1.25rem 0;
        border-right: 0;
        border-bottom: 1px solid #3a3a3a;
    }

    .fm-home-highlight:last-child {
        border-bottom: 0;
    }

    .fm-process-card.wp-block-group,
    .fm-service-card.wp-block-group {
        min-height: 250px;
    }

    .fm-why-lead,
    .fm-why-details {
        min-height: auto;
    }

    .fm-why-lead {
        min-height: 500px;
    }

    .fm-home-cta .wp-block-buttons {
        justify-content: flex-start;
    }

    .food-machines-footer-grid {
        row-gap: 3rem;
    }
}

@media (max-width: 560px) {
    .food-machines-header-inner.wp-block-group {
        min-height: 72px;
    }

    .food-machines-brand .wp-block-site-logo {
        max-width: 40px;
    }

    .food-machines-brand .wp-block-site-title {
        font-size: 1.1rem !important;
    }

    .fm-home-hero {
        min-height: 660px;
        padding-top: 4.5rem;
    }

    .fm-home-hero::before {
        right: -52%;
        width: 100%;
        opacity: 0.42;
    }

    .fm-home-hero-title {
        font-size: clamp(2.8rem, 14vw, 4.4rem);
    }

    .fm-home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fm-home-actions .wp-block-button,
    .fm-home-actions .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .fm-application-grid.wp-block-group {
        grid-template-columns: 1fr;
    }

    .fm-application-card.wp-block-group {
        min-height: 210px;
    }

    .fm-application-copy {
        max-height: none;
        margin-top: 0.75rem;
        color: var(--fm-muted);
        opacity: 1;
    }

    .fm-application-card:hover .fm-application-copy {
        color: var(--fm-white);
    }

    .fm-why-lead {
        min-height: 450px;
    }

    .food-machines-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   Food Machines homepage v1.4
   Screenshot-matched header, hero carousel, and application cards.
   Palette: white, Food Machines red, black, and neutral grey.
   ============================================================ */

:root {
    --fm-red: #c71920;
    --fm-red-dark: #981017;
    --fm-black: #111111;
    --fm-charcoal: #1a1a1a;
    --fm-white: #ffffff;
    --fm-surface: #f1f2f4;
    --fm-border: #d8dadd;
    --fm-muted: #60636a;
}

body {
    background: var(--fm-surface);
}

/* Mauting-inspired header proportions and alignment */
.food-machines-header {
    position: relative;
    z-index: 30;
    border-top: 2px solid rgba(199, 25, 32, 0.55);
    border-right: 0;
    border-bottom: 1px solid #e5e5e7;
    border-left: 0;
    background: var(--fm-white);
    color: var(--fm-black);
    box-shadow: none;
}

.food-machines-header-inner.wp-block-group {
    min-height: 104px;
    gap: clamp(1.5rem, 3vw, 4rem);
}

.food-machines-brand.wp-block-group {
    flex: 0 1 280px;
    min-width: 180px;
    gap: 0;
}

.food-machines-brand .wp-block-site-logo {
    overflow: visible;
    max-width: 250px;
    padding: 0;
    background: transparent;
}

.food-machines-brand .wp-block-site-logo img {
    width: auto;
    max-height: 64px;
    object-fit: contain;
}

.food-machines-brand:has(.custom-logo) .food-machines-brand-title {
    display: none;
}

.food-machines-header .wp-block-site-title,
.food-machines-header .wp-block-site-title a,
.food-machines-header .wp-block-navigation,
.food-machines-header .wp-block-navigation a {
    color: var(--fm-black);
}

.food-machines-brand-title {
    line-height: 1;
    white-space: nowrap;
}

.food-machines-primary-navigation {
    flex: 1 1 auto;
}

.food-machines-primary-navigation .wp-block-navigation__container {
    justify-content: center;
    gap: clamp(1.25rem, 2.5vw, 3rem);
}

.food-machines-primary-navigation .wp-block-navigation-item a {
    padding-block: 0.65rem;
    color: var(--fm-black);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.food-machines-header .wp-block-navigation__submenu-container {
    border: 1px solid #e1e1e3 !important;
    background: var(--fm-white) !important;
    color: var(--fm-black) !important;
    box-shadow: 0 14px 38px rgba(17, 17, 17, 0.12);
}

.food-machines-header-tools.wp-block-group {
    position: relative;
    flex: 0 0 auto;
    gap: 1.5rem;
}

.food-machines-language {
    color: var(--fm-black);
    font-size: 0.8rem;
    font-weight: 650;
    white-space: nowrap;
}

.food-machines-language span {
    color: var(--fm-red);
}

.fm-header-menu {
    position: relative;
}

.fm-header-menu summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    list-style: none;
}

.fm-header-menu summary::-webkit-details-marker {
    display: none;
}

.fm-header-menu summary span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fm-red);
    transition: transform 180ms ease, opacity 180ms ease;
}

.fm-header-menu[open] summary span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.fm-header-menu[open] summary span:nth-child(2) {
    opacity: 0;
}

.fm-header-menu[open] summary span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

.fm-header-menu-panel {
    position: absolute;
    top: calc(100% + 1.5rem);
    right: 0;
    display: grid;
    width: 230px;
    padding: 0.75rem;
    background: var(--fm-black);
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.28);
}

.fm-header-menu-panel a {
    padding: 0.9rem 1rem;
    color: var(--fm-white);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.fm-header-menu-panel a:hover,
.fm-header-menu-panel a:focus-visible {
    background: var(--fm-red);
    color: var(--fm-white);
}

/* One crossfading hero slide at a time, with text over the image */
.fm-home-carousel {
    overflow: hidden;
    border-bottom: 0;
    background: #d9dce0;
}

.fm-home-carousel-viewport.wp-block-group {
    position: relative;
    height: clamp(610px, calc(100svh - 106px), 760px);
    min-height: 610px;
}

.fm-home-slide.wp-block-group {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fm-home-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fm-home-slide-media.wp-block-group,
.fm-home-slide-image.wp-block-image,
.fm-home-slide-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.fm-home-slide-image img {
    object-fit: cover;
}

.fm-home-slide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.97) 30%,
        rgba(255, 255, 255, 0.84) 46%,
        rgba(255, 255, 255, 0.30) 67%,
        rgba(255, 255, 255, 0.02) 100%
    );
    content: "";
    pointer-events: none;
}

.fm-home-slide-shell.wp-block-group {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.fm-home-slide-content.wp-block-group {
    width: min(100%, 680px);
    margin: 0;
    padding-top: 3rem;
    padding-bottom: 6rem;
    gap: 1.2rem;
}

.fm-home-slide-eyebrow {
    color: var(--fm-red);
    font-size: clamp(0.9rem, 1.25vw, 1.1rem);
    font-weight: 650;
}

.fm-home-slide-title {
    max-width: 680px;
    color: var(--fm-black);
    font-size: clamp(3.3rem, 5.5vw, 6rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.fm-home-slide-copy {
    max-width: 590px;
    color: #303035;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.62;
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link {
    border-color: var(--fm-black);
    color: var(--fm-black);
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link:hover {
    border-color: var(--fm-black);
    background: var(--fm-black);
    color: var(--fm-white);
}

.fm-home-carousel-controls {
    border: 1px solid #dddddf;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(17, 17, 17, 0.15);
}

.fm-carousel-arrow,
.fm-carousel-toggle {
    border-color: var(--fm-black);
    background: var(--fm-white);
    color: var(--fm-black);
}

.fm-carousel-count {
    color: #77777d;
}

.fm-carousel-count strong {
    color: var(--fm-black);
}

/* Four image-led application cards in one desktop row */
.fm-applications {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
    background: var(--fm-surface);
    color: var(--fm-black);
}

.fm-applications .fm-section-title {
    color: var(--fm-black);
}

.fm-applications .fm-section-copy {
    color: var(--fm-muted);
}

.fm-application-grid.wp-block-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.5vw, 1.5rem);
    border: 0;
    background: transparent;
}

.fm-application-card.wp-block-group {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 470px;
    padding: 0;
    border: 1px solid var(--fm-border);
    border-top: 4px solid var(--fm-red);
    background: var(--fm-white);
    color: var(--fm-black);
    cursor: pointer;
    gap: 0;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.fm-application-card:hover,
.fm-application-card:focus-within {
    border-color: var(--fm-red);
    background: var(--fm-white);
    color: var(--fm-black);
    box-shadow: 0 20px 44px rgba(17, 17, 17, 0.16);
    transform: translateY(-7px);
}

.fm-application-card-top.wp-block-group {
    min-height: 165px;
    padding: 1.4rem;
    gap: 0.45rem;
}

.fm-application-card .fm-card-number {
    color: var(--fm-red);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.fm-application-card .fm-application-title,
.fm-application-card:hover .fm-application-title,
.fm-application-card:focus-within .fm-application-title {
    margin-top: 0;
    color: var(--fm-black);
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.fm-application-summary {
    color: var(--fm-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.fm-application-image.wp-block-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-top: 1px solid var(--fm-border);
    border-bottom: 1px solid var(--fm-border);
    background: #dfe2e6;
}

.fm-application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.fm-application-card:hover .fm-application-image img,
.fm-application-card:focus-within .fm-application-image img {
    transform: scale(1.035);
}

.fm-application-link-wrap {
    position: static;
    margin: auto 0 0;
    padding: 1.1rem 1.4rem;
    background: var(--fm-black);
    transition: background-color 180ms ease;
}

.fm-application-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--fm-white);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.fm-application-link span {
    color: #ff545a;
    font-size: 1.2rem;
}

.fm-application-card:hover .fm-application-link-wrap,
.fm-application-card:focus-within .fm-application-link-wrap {
    background: var(--fm-red);
}

.fm-application-card:hover .fm-application-link,
.fm-application-card:focus-within .fm-application-link,
.fm-application-card:hover .fm-application-link span,
.fm-application-card:focus-within .fm-application-link span {
    color: var(--fm-white);
}

@media (max-width: 1120px) {
    .food-machines-header-inner.wp-block-group {
        gap: 1.5rem;
    }

    .food-machines-brand.wp-block-group {
        flex-basis: 220px;
    }

    .food-machines-primary-navigation .wp-block-navigation__container {
        gap: 1.15rem;
    }

    .fm-application-grid.wp-block-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .food-machines-header-inner.wp-block-group {
        min-height: 84px;
    }

    .food-machines-brand.wp-block-group {
        flex: 1 1 auto;
    }

    .food-machines-brand .wp-block-site-logo {
        max-width: 190px;
    }

    .food-machines-primary-navigation {
        flex: 0 0 auto;
        order: 3;
    }

    .fm-header-menu {
        display: none;
    }

    .food-machines-header .wp-block-navigation__responsive-container-open {
        color: var(--fm-red);
    }

    .fm-home-carousel-viewport.wp-block-group {
        height: 700px;
        min-height: 700px;
    }

    .fm-home-slide::after {
        background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.97) 50%,
            rgba(255, 255, 255, 0.72) 72%,
            rgba(255, 255, 255, 0.06) 100%
        );
    }

    .fm-home-slide-shell.wp-block-group {
        align-items: flex-end;
    }

    .fm-home-slide-content.wp-block-group {
        padding-top: 11rem;
        padding-bottom: 7.5rem;
    }
}

@media (max-width: 620px) {
    .food-machines-language {
        display: none;
    }

    .fm-home-carousel-viewport.wp-block-group {
        height: 720px;
        min-height: 720px;
    }

    .fm-home-slide-title {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .fm-home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fm-home-actions .wp-block-button,
    .fm-home-actions .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .fm-application-grid.wp-block-group {
        grid-template-columns: 1fr;
    }

    .fm-application-card.wp-block-group {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .food-machines-primary-navigation .wp-block-navigation-item a::after,
    .fm-header-button .wp-block-button__link,
    .fm-home-actions .wp-block-button__link,
    .fm-button-light .wp-block-button__link,
    .fm-application-card,
    .fm-application-copy,
    .fm-service-card {
        transition: none;
    }
}

/* ============================================================
   Food Machines homepage v1.3
   Strong black, red, and industrial-grey color balance.
   ============================================================ */

:root {
    --fm-black: #0d0d0f;
    --fm-charcoal: #19191c;
    --fm-surface: #e7e9ed;
    --fm-border: #343439;
    --fm-muted: #6b6e75;
}

body {
    background: var(--fm-surface);
}

/* Dark global header */
.food-machines-header {
    border-bottom: 4px solid var(--fm-red);
    background: var(--fm-black);
    color: var(--fm-white);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.food-machines-brand .wp-block-site-logo {
    overflow: hidden;
    padding: 0.25rem;
    background: var(--fm-white);
}

.food-machines-header .wp-block-site-title,
.food-machines-header .wp-block-site-title a,
.food-machines-header .wp-block-navigation,
.food-machines-header .wp-block-navigation a {
    color: var(--fm-white);
}

.food-machines-header .wp-block-site-tagline {
    color: #a9a9ae;
}

.food-machines-header .wp-block-navigation__submenu-container {
    border-color: #343439 !important;
    background: var(--fm-black) !important;
    color: var(--fm-white) !important;
}

/* Dark text panel over the carousel image */
.fm-home-carousel {
    background: #25262a;
    border-bottom: 8px solid var(--fm-red);
}

.fm-home-slide::after {
    background: linear-gradient(
        90deg,
        rgba(13, 13, 15, 0.99) 0%,
        rgba(13, 13, 15, 0.97) 32%,
        rgba(13, 13, 15, 0.82) 49%,
        rgba(13, 13, 15, 0.25) 72%,
        rgba(13, 13, 15, 0.04) 100%
    );
}

.fm-home-slide-eyebrow {
    color: #ff4149;
}

.fm-home-slide-title {
    color: var(--fm-white);
}

.fm-home-slide-copy {
    color: #d0d0d3;
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link {
    border-color: var(--fm-white);
    color: var(--fm-white);
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link:hover {
    border-color: var(--fm-white);
    background: var(--fm-white);
    color: var(--fm-black);
}

.fm-home-carousel-controls {
    border: 1px solid #36363b;
    background: rgba(13, 13, 15, 0.95);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.32);
}

.fm-carousel-arrow,
.fm-carousel-toggle {
    border-color: #66666d;
    background: var(--fm-charcoal);
    color: var(--fm-white);
}

.fm-carousel-count {
    color: #929298;
}

.fm-carousel-count strong {
    color: var(--fm-white);
}

/* Applications: black section with red interactive cards */
.fm-applications {
    background: #121214;
    color: var(--fm-white);
}

.fm-applications .fm-section-title {
    color: var(--fm-white);
}

.fm-applications .fm-section-copy {
    color: #b2b2b8;
}

.fm-application-grid.wp-block-group {
    border-color: #3a3a40;
}

.fm-application-card.wp-block-group {
    border-color: #3a3a40;
    background: #1c1c20;
}

.fm-application-title {
    color: var(--fm-white);
}

.fm-application-copy {
    color: #c1c1c6;
}

.fm-application-card:hover,
.fm-application-card:focus-within {
    background: var(--fm-red);
}

/* Process: grey field with alternating red and black cards */
.fm-process {
    background: #dfe2e7;
}

.fm-process-grid.wp-block-group {
    border-color: var(--fm-black);
    background: var(--fm-black);
}

.fm-process-card.wp-block-group {
    background: #f0f1f3;
}

.fm-process-card:nth-child(2) {
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-process-card:nth-child(2)::before {
    background: var(--fm-white);
}

.fm-process-card:nth-child(2) .fm-process-step,
.fm-process-card:nth-child(2) .fm-process-title,
.fm-process-card:nth-child(2) > p:last-child {
    color: var(--fm-white);
}

.fm-process-card:nth-child(3) {
    background: var(--fm-black);
    color: var(--fm-white);
}

.fm-process-card:nth-child(3) .fm-process-title {
    color: var(--fm-white);
}

.fm-process-card:nth-child(3) > p:last-child {
    color: #b9b9be;
}

/* Keep the strongest red/black contrast in the partnership section */
.fm-why {
    background: #080809;
}

.fm-why-details {
    background: #18181b;
}

/* Services: dark image-led cards instead of another white section */
.fm-services {
    background: #111113;
    color: var(--fm-white);
}

.fm-services .fm-section-title {
    color: var(--fm-white);
}

.fm-service-card.wp-block-group {
    background: #1b1b1f;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.fm-service-card-body.wp-block-group {
    background: #1b1b1f;
}

.fm-service-card-body h3 {
    color: var(--fm-white);
}

.fm-service-card-body > p:not(.fm-text-link) {
    color: #b8b8bd;
}

.fm-service-card:hover {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
}

/* Red CTA with a black action button */
.fm-button-light .wp-block-button__link {
    border-color: var(--fm-black);
    background: var(--fm-black);
    color: var(--fm-white);
}

.fm-button-light .wp-block-button__link:hover {
    border-color: var(--fm-white);
    background: var(--fm-white);
    color: var(--fm-black);
}

@media (max-width: 900px) {
    .fm-home-slide::after {
        background: linear-gradient(
            0deg,
            rgba(13, 13, 15, 0.99) 0%,
            rgba(13, 13, 15, 0.97) 50%,
            rgba(13, 13, 15, 0.64) 74%,
            rgba(13, 13, 15, 0.08) 100%
        );
    }
}

@media (max-width: 560px) {
    .fm-application-copy {
        color: #bdbdc3;
    }

    .fm-application-card:hover .fm-application-copy,
    .fm-application-card:focus-within .fm-application-copy {
        color: var(--fm-white);
    }
}

/* ============================================================
   Food Machines homepage v1.2
   Editable Reiser-style carousel and interactive content cards.
   ============================================================ */

.fm-home-carousel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background: #dfe3e8;
}

.fm-home-carousel-viewport.wp-block-group {
    position: relative;
    height: clamp(620px, calc(100svh - 92px), 780px);
    min-height: 620px;
}

.fm-home-slide.wp-block-group {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 650ms ease, visibility 650ms ease;
}

.fm-home-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fm-home-slide-media.wp-block-group,
.fm-home-slide-image.wp-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.fm-home-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-home-slide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.96) 31%,
        rgba(255, 255, 255, 0.82) 48%,
        rgba(255, 255, 255, 0.18) 72%,
        rgba(255, 255, 255, 0) 100%
    );
    content: "";
    pointer-events: none;
}

.fm-home-slide-shell.wp-block-group {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    pointer-events: none;
}

.fm-home-slide-content.wp-block-group {
    width: min(100%, 680px);
    margin: 0;
    padding-top: clamp(3rem, 7vw, 7rem);
    padding-bottom: clamp(6rem, 9vw, 8rem);
    gap: 1.25rem;
    pointer-events: auto;
}

.fm-home-slide-eyebrow {
    color: var(--fm-red);
    font-size: clamp(0.82rem, 1.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.fm-home-slide-title {
    max-width: 680px;
    color: var(--fm-black);
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.93;
}

.fm-home-slide-copy {
    max-width: 590px;
    color: #343434;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
}

.fm-home-carousel .fm-home-actions {
    margin-top: 0.35rem;
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link {
    border-color: var(--fm-black);
    color: var(--fm-black);
}

.fm-home-carousel .fm-button-secondary .wp-block-button__link:hover {
    border-color: var(--fm-black);
    background: var(--fm-black);
    color: var(--fm-white);
}

.fm-home-carousel-controls {
    position: absolute;
    z-index: 5;
    right: max(1.5rem, calc((100vw - var(--wp--style--global--wide-size)) / 2));
    bottom: 1.75rem;
    display: none;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 35px rgba(17, 17, 17, 0.15);
}

.fm-home-carousel.is-enhanced .fm-home-carousel-controls {
    display: flex;
}

.fm-carousel-arrow,
.fm-carousel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--fm-black);
    border-radius: 0;
    background: var(--fm-white);
    color: var(--fm-black);
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.fm-carousel-arrow:hover,
.fm-carousel-arrow:focus-visible,
.fm-carousel-toggle:hover,
.fm-carousel-toggle:focus-visible {
    border-color: var(--fm-red);
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.fm-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid var(--fm-red);
    border-radius: 50%;
    background: transparent;
    transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.fm-carousel-dot.is-active {
    width: 28px;
    border-radius: 20px;
    background: var(--fm-red);
}

.fm-carousel-count {
    min-width: 54px;
    color: #737373;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.fm-carousel-count strong {
    color: var(--fm-black);
    font-size: 0.9rem;
}

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

/* Fully clickable application cards */
.fm-application-card.wp-block-group {
    position: relative;
    cursor: pointer;
}

.fm-application-card:focus-within {
    outline: 4px solid var(--fm-red);
    outline-offset: -4px;
}

.fm-application-link-wrap {
    position: static;
    margin-top: 1rem;
}

.fm-application-link {
    color: var(--fm-red);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.fm-application-link::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    content: "";
}

.fm-application-card:hover .fm-application-link,
.fm-application-card:focus-within .fm-application-link {
    color: var(--fm-white);
}

.fm-application-card:hover,
.fm-application-card:focus-within {
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-application-card:focus-within .fm-card-number,
.fm-application-card:focus-within .fm-application-title {
    color: var(--fm-white);
}

.fm-application-card:focus-within .fm-application-copy {
    max-height: 5rem;
    margin-top: 0.85rem;
    color: var(--fm-white);
    opacity: 1;
}

/* Image-led interactive feature cards */
.fm-service-card.wp-block-group {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 0;
    border-top: 0;
    gap: 0;
}

.fm-service-image.wp-block-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    background: #dde1e6;
}

.fm-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.fm-service-card:hover .fm-service-image img,
.fm-service-card:focus-within .fm-service-image img {
    transform: scale(1.035);
}

.fm-service-card-body.wp-block-group {
    min-height: 270px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 5px solid var(--fm-red);
    gap: 1rem;
}

.fm-service-card-body h3 {
    margin-top: 0;
}

.fm-service-card .fm-text-link {
    margin-top: auto;
}

.fm-service-card .fm-text-link a {
    color: var(--fm-red);
    text-decoration: none;
}

.fm-service-card .fm-text-link a::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    content: "";
}

.fm-service-card:focus-within {
    outline: 4px solid var(--fm-red);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .fm-home-carousel-viewport.wp-block-group {
        height: 720px;
    }

    .fm-home-slide::after {
        background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.97) 48%,
            rgba(255, 255, 255, 0.52) 72%,
            rgba(255, 255, 255, 0.08) 100%
        );
    }

    .fm-home-slide-shell.wp-block-group {
        align-items: flex-end;
    }

    .fm-home-slide-content.wp-block-group {
        width: 100%;
        max-width: 680px;
        padding-top: 12rem;
        padding-bottom: 7.5rem;
    }

    .fm-home-slide-title {
        font-size: clamp(2.7rem, 9vw, 4.8rem);
    }

    .fm-home-carousel-controls {
        right: 1.5rem;
        bottom: 1.25rem;
    }
}

@media (max-width: 560px) {
    .fm-home-carousel-viewport.wp-block-group {
        height: 750px;
        min-height: 750px;
    }

    .fm-home-slide-content.wp-block-group {
        padding-top: 10rem;
        padding-bottom: 7rem;
        gap: 1rem;
    }

    .fm-home-slide-title {
        font-size: clamp(2.45rem, 13vw, 3.65rem);
    }

    .fm-home-slide-copy {
        font-size: 0.98rem;
    }

    .fm-home-carousel-controls {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        justify-content: space-between;
    }

    .fm-carousel-arrow,
    .fm-carousel-toggle {
        width: 42px;
        height: 42px;
    }

    .fm-carousel-count {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fm-home-slide,
    .fm-carousel-arrow,
    .fm-carousel-toggle,
    .fm-carousel-dot,
    .fm-service-image img {
        transition: none;
    }
}
