:root {
    color-scheme: light;
    --ink: #24332d;
    --muted: #66736d;
    --green: #28583f;
    --green-dark: #193c2c;
    --cream: #f8f6ef;
    --line: #e5e8e1;
    --red: #bc3734;
    font-family: "Aptos", "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
.container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 80px; }
.section-tinted { background: var(--cream); }
.section-dark { padding-block: 80px; color: #fff; background: var(--green-dark); }
.site-header { position: relative; z-index: 2; display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 28px; padding: 12px max(24px, calc((100% - 1240px)/2)); background: #fff; }
.brand { flex-shrink: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.brand span { color: var(--red); }
.brand-light { color: #fff; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2.3vw, 30px); }
.main-nav a, .admin-link { font-size: .89rem; font-weight: 600; }
.main-nav a:hover, .admin-link:hover { color: var(--red); }
.admin-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
.hero { position: relative; display: grid; min-height: min(690px, 74vh); align-items: center; overflow: hidden; background: linear-gradient(108deg, rgba(23,53,38,.9), rgba(23,53,38,.7) 48%, rgba(23,53,38,.18)), var(--hero-image, linear-gradient(135deg, #52745a, #193c2c)); background-position: center; background-size: cover; color: #fff; }
.hero-content { width: min(700px, calc(100% - 48px)); margin-inline: max(24px, calc((100% - 1140px)/2)); padding-block: 80px; }
.hero h1 { max-width: 700px; margin-bottom: 22px; font-family: Georgia, serif; font-weight: 500; }
.hero-content > p:not(.eyebrow) { max-width: 530px; color: #eef0e9; font-size: 1.2rem; }
.eyebrow { margin-bottom: 10px; color: #8c9c70; font-size: .76rem; font-weight: 750; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.section-dark .eyebrow, .hero .eyebrow { color: #cbcc88; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 5px; background: var(--green); color: #fff; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); background: var(--green-dark); color: #fff; }
.hero .button { margin-top: 12px; background: #fff; color: var(--green-dark); }
.hero-dots { position: absolute; right: max(24px, calc((100% - 1140px)/2)); bottom: 28px; display: flex; gap: 10px; }
.hero-dots a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #ffffff90; border-radius: 50%; color: #fff; font-size: .8rem; }
.content-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 8vw, 100px); }
.section-heading h2 { max-width: 560px; }
.section-heading > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.text-link:hover { color: var(--red); }
.text-link-light { color: #d1d9ca; }
.feature-image { min-height: 310px; overflow: hidden; border-radius: 10px; background: var(--cream); }
.feature-image img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.feature-placeholder { display: grid; place-items: center; background: linear-gradient(135deg,#e7e5d8,#c5d3bd); color: var(--green); font-family: Georgia,serif; font-size: 2rem; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-title-row h2 { margin-bottom: 0; }
.section-title-row .eyebrow { margin-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card, .news-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #24332d14; }
.card-image { display: grid; min-height: 205px; place-items: center; overflow: hidden; background: linear-gradient(145deg,#efede4,#e4e9df); color: #779078; font-family: Georgia,serif; font-size: 2.5rem; }
.product-grid .card-image { min-height: 190px; }
.card-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h2, .card-body h3 { margin: 7px 0 10px; }
.card-body p { margin-bottom: 14px; color: var(--muted); font-size: .92rem; }
.section-dark .news-card { background: #234532; border-color: #41614e; }
.section-dark .card-body p, .section-dark .card-body { color: #e8ebe3; }
.section-dark .card-image { border-bottom: 1px solid #41614e; }
.mini-list { display: grid; gap: 14px; }
.mini-card { display: flex; min-height: 98px; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.mini-card:hover { background: var(--cream); }
.mini-card h3 { margin: 3px 0 8px; }
.mini-image { width: 86px; height: 76px; flex-shrink: 0; overflow: hidden; border-radius: 5px; }
.mini-image img { width: 100%; height: 100%; object-fit: cover; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.callout h2 { margin-bottom: 12px; }
.callout p:not(.eyebrow) { margin-bottom: 8px; color: var(--muted); }
.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 48px; padding: 44px max(24px, calc((100% - 1140px)/2)); background: #182f24; color: #e5eae2; }
.site-footer p { margin: 14px 0 0; color: #c5cec3; font-size: .9rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px 20px; }
.footer-contact a { font-weight: 600; }
.copyright { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #ffffff24; font-size: .8rem !important; }
.page-hero { padding: 76px max(24px, calc((100% - 1140px)/2)); background: var(--cream); }
.page-hero h1 { max-width: 820px; margin-bottom: 12px; font-family: Georgia,serif; font-weight: 500; }
.page-hero > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 54px; margin-top: 28px; }
.detail-image { display: grid; min-height: 370px; align-self: start; place-items: center; overflow: hidden; border-radius: 9px; background: var(--cream); color: #779078; font-family: Georgia,serif; font-size: 3rem; }
.detail-image img { width: 100%; min-height: 370px; max-height: 560px; object-fit: contain; }
.prose { color: #384740; }
.prose h1, .prose h2 { color: var(--ink); }
.prose h1 { margin-top: 6px; font-size: clamp(2.4rem,5vw,3.7rem); }
.prose h2 { margin-top: 28px; font-size: 1.45rem; }
.prose p { white-space: pre-line; }
.article { max-width: 860px; }
.article h1 { margin-block: 20px 28px; font-family: Georgia,serif; font-weight: 500; }
.article-cover { max-height: 540px; margin-bottom: 28px; overflow: hidden; border-radius: 8px; background: var(--cream); }
.article-cover img { width: 100%; max-height: 540px; object-fit: cover; }
.lead { color: var(--muted); font-size: 1.2rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery figcaption { padding: 5px 2px; color: var(--muted); font-size: .84rem; }
.recipe-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 42px; margin-top: 30px; }
.recipe-columns .prose { white-space: pre-line; }
.print-button { margin-top: 24px; }
.pagination { margin-top: 28px; }
.pagination nav { display: flex; justify-content: center; gap: 7px; }
.pagination nav > div:first-child { display: none; }
.pagination nav > div:last-child > span, .pagination nav > div:last-child > a { display: flex; gap: 7px; }
.pagination nav a, .pagination nav span span, .pagination nav span[aria-current] span { display: inline-grid; min-width: 38px; height: 38px; place-items: center; padding-inline: 10px; border: 1px solid var(--line); border-radius: 4px; }
.pagination nav span[aria-current] span { background: var(--green); color: #fff; }
.empty-state { grid-column: 1 / -1; padding: 24px; border: 1px dashed #cad4c7; border-radius: 7px; color: var(--muted); }
.notice { margin: 20px auto; width: min(1140px,calc(100% - 48px)); padding: 13px 18px; border: 1px solid #b7d7b9; border-radius: 5px; background: #f0f8ef; color: #28583f; }
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: start; gap: 48px; }
.contact-form, .contact-card, .admin-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contact-form, .admin-form, .login-card { display: grid; gap: 18px; }
label { display: grid; gap: 7px; color: #35453d; font-size: .91rem; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd4cd; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: .96rem; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #7f9a66; outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-errors { padding: 14px; border: 1px solid #e8b8b3; border-radius: 5px; background: #fff5f4; color: #872c28; }
.contact-card { position: sticky; top: 20px; background: var(--cream); }
.contact-card h2 { font-size: 1.7rem; }
.contact-card > p { color: var(--muted); }
.map-link { color: var(--green); font-weight: 700; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: linear-gradient(135deg,#f7f5ed,#e7ede5); }
.login-card { width: min(440px,100%); padding: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 18px 55px #193c2c12; }
.login-card .brand { margin-bottom: 4px; }
.login-card h1 { margin-bottom: 0; font-size: 2rem; }
.login-card .button { width: 100%; }
.check-field { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check-field input { width: 18px; min-height: 18px; height: 18px; }
.login-card > .text-link { justify-content: center; }

.admin-page { min-height: 100vh; background: #f5f6f3; }
.admin-header { display: flex; min-height: 74px; align-items: center; justify-content: space-between; padding: 12px 28px; background: var(--green-dark); color: #fff; }
.admin-header .brand { display: flex; width: auto; height: auto; }
.admin-header .brand img { width: auto; height: 56px; }
.admin-header .brand small { margin-left: 12px; color: #c6d1c4; font-family: inherit; font-size: .72rem; font-weight: 500; letter-spacing: .03em; }
.admin-user, .admin-user form { display: flex; align-items: center; gap: 16px; }
.logout-button { padding: 7px 12px; border: 1px solid #ffffff55; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.admin-shell { display: grid; min-height: calc(100vh - 74px); grid-template-columns: 240px minmax(0,1fr); }
.admin-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; border-right: 1px solid var(--line); background: #fff; }
.admin-sidebar a { padding: 9px 12px; border-radius: 4px; color: #46534b; font-size: .9rem; font-weight: 600; }
.admin-sidebar a:hover { background: #eff3ed; color: var(--green); }
.admin-sidebar a:last-child { margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
.admin-main { min-width: 0; padding: clamp(22px,4vw,44px); }
.admin-main .notice { width: 100%; margin: 0 0 20px; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-title h1 { margin: 0 0 6px; font-size: clamp(1.9rem,3.5vw,2.7rem); }
.admin-title p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.admin-title .eyebrow { margin-bottom: 4px; }
.admin-search { display: flex; max-width: 540px; align-items: center; gap: 10px; margin-bottom: 18px; }
.admin-search input { flex: 1; }
.button-small { min-height: 43px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: #fafbf8; color: var(--muted); font-size: .77rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; align-items: center; gap: 14px; }
.row-actions form { margin: 0; }
.delete-button { padding: 0; border: 0; background: transparent; color: #a53834; cursor: pointer; font: inherit; font-size: .9rem; }
.status-pill { display: inline-block; padding: 3px 9px; border-radius: 20px; background: #eef3ed; color: #28583f; font-size: .78rem; }
.status-new { background: #fff3e0; color: #8d5614; }
.status-draft { background: #f0f0ef; color: #747974; }
.admin-form { max-width: 780px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-form .form-actions { display: flex; justify-content: end; align-items: center; gap: 20px; margin-top: 8px; }
.admin-form input[type="file"] { padding: 7px; }
.current-file { color: var(--muted); font-size: .83rem; font-weight: 400; }
.admin-readonly { display: grid; gap: 5px; color: #525f57; }
.field-label { font-size: .91rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.stat-card span { color: var(--muted); font-size: .88rem; }
.stat-card strong { color: var(--green); font-size: 2rem; line-height: 1; }
.admin-panel h2 { margin-bottom: 0; font-size: 1.4rem; }
.message-row { display: grid; grid-template-columns: 85px 1fr 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.message-row:last-child { border-bottom: 0; }
.message-row > span:first-child { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
    .site-header { flex-wrap: wrap; justify-content: center; gap: 14px 24px; padding: 18px 24px; }
    .main-nav { order: 2; width: 100%; }
    .admin-link { font-size: .82rem; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-shell { grid-template-columns: 200px minmax(0,1fr); }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .container { width: min(100% - 32px,1140px); }
    .section, .section-dark { padding-block: 52px; }
    .site-header { padding: 16px; }
    .main-nav { gap: 9px 15px; }
    .main-nav a { font-size: .84rem; }
    .hero { min-height: 560px; }
    .hero-content { width: calc(100% - 36px); margin-inline: 18px; }
    .section-title-row, .callout { align-items: start; flex-direction: column; }
    .content-grid, .detail-grid, .contact-layout, .recipe-columns { grid-template-columns: 1fr; gap: 28px; }
    .card-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .card-image, .product-grid .card-image { min-height: 140px; }
    .card-body { padding: 16px; }
    .card-body h2, .card-body h3 { font-size: 1.1rem; }
    .card-body p { font-size: .86rem; }
    .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; padding: 36px 20px; }
    .footer-contact { justify-content: start; }
    .copyright { grid-column: auto; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-sidebar a { padding: 8px; font-size: .81rem; }
    .admin-sidebar a:last-child { margin: 0; border: 0; }
    .admin-main { padding: 20px 14px; }
    .admin-header { padding: 12px 16px; }
    .admin-user { gap: 8px; font-size: .83rem; }
    .admin-title { align-items: start; }
    .admin-form, .contact-form { padding: 18px; }
    .message-row { grid-template-columns: 65px 1fr; }
    .message-row time, .message-row > span:nth-child(3) { color: var(--muted); }
    .row-actions { gap: 9px; }
    .admin-table th, .admin-table td { padding: 12px 10px; }
    .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}
@media print {
    .site-header, .site-footer, .print-button, .page-hero, .text-link { display: none !important; }
    .section { padding: 0; }
    body { color: #000; }
}

:root {
    --ink: #4d2100;
    --muted: #795d3e;
    --green: #8b6319;
    --green-dark: #4d2100;
    --cream: #fffeef;
    --line: #e6d8b7;
    --red: #ed3237;
    font-family: Arial, Helvetica, sans-serif;
}

body { background: #fffeef url("/media/legacy/application/modules/comum/assets/img/background.png") repeat; color: var(--ink); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.site-header {
    min-height: 112px;
    padding-block: 8px;
    border-bottom: 4px solid #bf964b;
    background: rgb(255 254 239 / 96%);
    box-shadow: 0 3px 14px rgb(77 33 0 / 9%);
}
.brand { width: 138px; height: 94px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { gap: clamp(12px, 2vw, 26px); }
.main-nav a, .admin-link { color: #633c13; }
.main-nav a:hover, .admin-link:hover { color: var(--red); }
.admin-link { border-color: #bf964b; }
.eyebrow { color: #a07629; }
.section-dark .eyebrow, .hero .eyebrow { color: #f0d28c; }
.hero {
    min-height: min(560px, 72vh);
    background-color: #c9a665;
    background-image: linear-gradient(90deg, rgb(65 35 7 / 48%), rgb(65 35 7 / 5%)), var(--hero-image, url("/media/legacy/application/modules/comum/assets/img/sky-full.jpg"));
    box-shadow: inset 0 -12px 0 rgb(191 150 75 / 76%);
}
.hero h1 { font-weight: 500; text-shadow: 0 2px 14px rgb(45 25 5 / 30%); }
.hero .button { color: #4d2100; border: 2px solid #bf964b; }
.hero-dots a { border-color: #fff; background: rgb(77 33 0 / 22%); }
.section-tinted, .page-hero { background-color: #f8edce; }
.section-dark { background-color: #633c13; }
.section-dark .news-card { background: #fffdf3; border-color: #d9c18e; }
.section-dark .card-body, .section-dark .card-body p { color: #4d2100; }
.section-dark .card-body h3 a { color: #4d2100; }
.section-dark .text-link-light { color: #f3dfaf; }
.card, .news-card { border-color: #e0cfaa; border-radius: 4px; box-shadow: 0 3px 12px rgb(77 33 0 / 7%); }
.card:hover { box-shadow: 0 10px 26px rgb(77 33 0 / 14%); }
.card-image { background: #f3e8cb; color: #8b6319; }
.category-card { overflow: visible; border: 0; background: transparent; box-shadow: none; text-align: center; }
.category-card:hover { transform: translateY(-3px); box-shadow: none; }
.category-card .card-image, .product-grid .card-image {
    width: min(210px, 100%);
    min-height: 0;
    aspect-ratio: 1;
    margin: 20px auto 0;
    border: 7px solid #bf964b;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 14px rgb(77 33 0 / 12%);
}
.category-card .card-image img, .product-grid .card-image img { min-height: 0; border-radius: 50%; object-fit: cover; }
.product-grid .card-image { width: min(172px, 100%); border-width: 5px; }
.category-card .card-body h2, .product-grid .card-body h3 { color: #4d2100; }
.button { border-radius: 3px; background: #8b6319; }
.button:hover { background: #633c13; }
.text-link { color: #8b6319; }
.feature-image { border: 7px solid #bf964b; border-radius: 50% 50% 5px 5px; background: #f3e8cb; }
.feature-image img { max-height: 470px; }
.page-hero { background-image: linear-gradient(90deg, rgb(255 254 239 / 88%), rgb(255 254 239 / 65%)), url("/media/legacy/application/modules/comum/assets/img/background.jpg"); background-position: center; background-size: cover; }
.site-footer { border-top: 5px solid #bf964b; background: #4d2100; }
.brand-light { color: #fff; }
.site-footer p { color: #f3dfaf; }
.footer-contact a:hover { color: #f0cb80; }

@media (max-width: 760px) {
    .site-header { min-height: auto; gap: 10px; padding: 8px 16px 14px; }
    .brand { width: 104px; height: 70px; }
    .admin-header .brand img { height: 48px; }
    .main-nav { gap: 7px 13px; }
    .hero { min-height: 480px; background-position: center; }
    .category-card .card-image { width: min(160px, 100%); margin-top: 8px; border-width: 5px; }
    .product-grid .card-image { width: min(145px, 100%); min-height: 0; }
    .feature-image { border-radius: 50% 50% 4px 4px; }
}
