/*
Theme Name: De la Madre Minimalista
Theme URI: https://www.delamadrefood.com.br/
Author: Grupo Zuazo
Description: Tema minimalista para De la Madre, com imagem de capa incluída, layout responsivo e textos editáveis no Personalizador do WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: delamadre-minimalista
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--paper: #f6f3ed;
	--ink: #292c25;
	--muted: #66695f;
	--accent: #806647;
	--line: #d9d6cc;
	--serif: Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--gutter: clamp(22px, 4.6vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
::selection { background: #daceba; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -120px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; color: var(--paper); }

/* A quiet header. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand-link { display: inline-flex; flex-direction: column; text-decoration: none; align-items: flex-start; }
.brand-link:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 34px; line-height: 1.05; font-style: italic; letter-spacing: -1.2px; }
.brand-tagline { margin-top: 7px; font-size: 9px; letter-spacing: 3.2px; line-height: 1.4; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; max-width: 220px; width: auto; max-height: 70px; height: auto; }
.menu { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; }
.menu a { display: block; text-decoration: none; font-size: 13px; font-weight: 500; padding: 12px 0; }
.menu .sub-menu { display: none; position: absolute; z-index: 10; right: 0; top: 100%; width: 220px; margin: 0; padding: 12px 20px; list-style: none; border: 1px solid var(--line); background: var(--paper); }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { padding: 8px 0; }
.menu-toggle { display: none; align-items: center; gap: 12px; color: var(--ink); background: none; border: 1px solid var(--line); padding: 10px 14px; font-size: 13px; min-height: 44px; }
.menu-lines { width: 16px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

/* The photograph keeps its original proportions at every screen width. */
.hero { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); gap: clamp(30px, 4vw, 68px); align-items: center; padding-top: clamp(36px, 4.3vw, 66px); padding-bottom: 46px; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 2.1px; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 { margin: 0; font-size: clamp(42px, 4vw, 64px); line-height: 1.04; letter-spacing: -1.8px; overflow-wrap: anywhere; }
.hero-text { max-width: 300px; margin: 26px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 50px; padding: 14px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.button span { font-size: 18px; line-height: 1; }
.button:hover { color: var(--paper); background: #45493d; border-color: #45493d; }
.hero-image-wrap { overflow: hidden; background: #e7dfd1; }
.hero-image { display: block; width: 100%; height: auto; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* Short, editable introduction. */
.about { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); gap: clamp(30px, 4vw, 68px); position: relative; padding-top: 48px; padding-bottom: 66px; scroll-margin-top: 24px; }
.about::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.about .eyebrow { margin-bottom: 18px; }
.about h2 { margin: 0; font-size: clamp(34px, 3vw, 47px); line-height: 1.12; letter-spacing: -1.3px; }
.about-copy { max-width: 590px; align-self: center; color: var(--muted); font-size: 17px; line-height: 1.9; }
.about-copy p:last-child { margin-bottom: 0; }

/* Appears after the owner adds at least one public contact. */
.contact-section { margin-bottom: 58px; scroll-margin-top: 24px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 42px; background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 54px); }
.contact-copy { max-width: 620px; }
.contact-copy .eyebrow { color: #cabb9f; margin-bottom: 18px; }
.contact-copy h2 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.13; letter-spacing: -1.2px; }
.contact-copy p:last-child { margin-bottom: 0; color: #deded6; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex-shrink: 0; max-width: 100%; overflow-wrap: anywhere; }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-light:hover { color: var(--ink); background: #e4ddcf; border-color: #e4ddcf; }
.contact-text-link { color: var(--paper); font-size: 13px; }
.contact-text-link:hover { color: #daceba; }
.contact-section :focus-visible { outline-color: var(--paper); }

/* Footer and standard WordPress content. */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 30px; }
.footer-brand { margin: 0; font-family: var(--serif); font-size: 23px; font-style: italic; line-height: 1.25; }
.footer-brand span { display: block; margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 10px; font-style: normal; letter-spacing: .2px; }
.copyright { margin: 0; color: var(--muted); font-size: 11px; }
.content-main { min-height: 60vh; padding-top: 64px; padding-bottom: 80px; }
.entry { max-width: 900px; margin-inline: auto; }
.entry-header { margin-bottom: 40px; }
.entry-header h1, .not-found h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: -1.8px; overflow-wrap: anywhere; }
.entry-header .eyebrow { margin-bottom: 18px; }
.entry-image { margin-bottom: 34px; }
.entry-image img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 17px; overflow-wrap: anywhere; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content h2 { font-size: 36px; line-height: 1.2; margin-top: 1.6em; }
.entry-content h3 { font-size: 28px; line-height: 1.25; margin-top: 1.6em; }
.entry-content blockquote { margin-inline: 0; padding: 16px 24px; border-left: 3px solid var(--accent); background: #ece8df; }
.entry-content pre { padding: 20px; overflow-x: auto; background: #ece8df; font-size: 14px; }
.entry-content iframe { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; }
.entry-content .alignleft { float: left; margin: 6px 24px 16px 0; }
.entry-content .alignright { float: right; margin: 6px 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignwide { margin-inline: auto; max-width: 100%; }
.entry-content .alignfull { margin-inline: 0; width: 100%; max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--muted); }
.bypostauthor { font-weight: 500; }
.post-list { display: grid; gap: 36px; }
.post-summary { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-summary.no-image { display: block; }
.post-image img { display: block; width: 100%; height: auto; }
.post-summary .eyebrow { margin-bottom: 12px; }
.post-summary h2 { font-size: 34px; line-height: 1.2; margin: 0 0 18px; }
.post-summary h2 a { text-decoration: none; }
.post-summary p:not(.eyebrow) { color: var(--muted); }
.read-more { font-size: 13px; }
.navigation { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.page-numbers { padding: 6px 10px; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 24px; }
.search-form label { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.search-field { padding: 12px; border: 1px solid var(--line); background: #fff; max-width: 100%; }
.search-submit { min-height: 50px; padding: 12px 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.not-found > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); }

@media (min-width: 1600px) {
	.hero h1 { font-size: 64px; }
}
@media (max-width: 1100px) {
	.hero h1 { letter-spacing: -1.8px; }
	.hero-text { font-size: 15px; }
	.contact-inner { align-items: flex-start; }
}
@media (max-width: 900px) {
	.header-inner { min-height: 92px; flex-wrap: wrap; gap: 16px; padding-block: 20px; }
	.brand-name { font-size: 30px; }
	.brand-tagline { font-size: 8px; }
	.custom-logo { max-height: 56px; max-width: 180px; }
	.dm-js .menu-toggle { display: inline-flex; }
	.site-navigation { width: 100%; flex-basis: 100%; }
	.menu { gap: 24px; flex-wrap: wrap; }
	.menu a { padding-block: 10px; }
	.menu .sub-menu { display: block; position: static; width: auto; border: 0; padding: 0 0 0 16px; background: transparent; }
	.hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 46px; padding-bottom: 40px; }
	.hero h1 { font-size: clamp(50px, 7.6vw, 70px); max-width: 650px; letter-spacing: -2px; }
	.hero-text { max-width: 450px; margin-block: 22px 26px; font-size: 16px; }
	.hero .eyebrow { margin-bottom: 20px; }
	.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; padding-top: 38px; padding-bottom: 46px; }
	.about h2 { font-size: 38px; }
	.about-copy { font-size: 16px; line-height: 1.8; }
	.contact-inner { flex-direction: column; gap: 26px; }
	.contact-links { flex-shrink: 1; }
}
@media (max-width: 560px) {
	.header-inner { min-height: 88px; }
	.brand-name { font-size: 29px; }
	.hero { padding-top: 38px; gap: 30px; }
	.hero h1 { font-size: clamp(36px, 10.6vw, 58px); letter-spacing: -1.8px; }
	.hero-text { font-size: 15px; max-width: 280px; }
	.hero-figure figcaption { font-size: 9px; letter-spacing: .6px; }
	.button { padding-inline: 18px; }
	.about { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 40px; }
	.about h2 { font-size: 36px; }
	.about-copy { font-size: 15px; }
	.contact-section { margin-bottom: 40px; }
	.contact-inner { padding: 28px 24px; }
	.contact-copy h2 { font-size: 34px; }
	.footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 26px; }
	.content-main { padding-top: 40px; padding-bottom: 54px; }
	.entry-content { font-size: 16px; }
	.post-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.post-summary h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
