/* =========================================================================
   DOOGS PREMIUM — DESIGN SYSTEM
   Linguagem visual editorial inspirada em Heinz (CPG global).
   Tema-filho de Hello Elementor.
   ========================================================================= */

:root {
	/* ── PALETA (também registrar como Global Colors no Elementor) ────── */
	--primary-red:    #C8102E;
	--dark-burgundy:  #5C1A2E;
	--mustard-yellow: #F5C518;
	--navy-blue:      #003DA5;
	--cream:          #F5F0E8;
	--white:          #FFFFFF;
	--text-dark:      #1A1A1A;
	--text-muted:     #6E6E6E;
	--gray-line:      rgba(26, 26, 26, 0.10);
	--footer-bg:      #1A1A1A;
	--footer-text:    #AAAAAA;
	--footer-muted:   #6E6E6E;

	/* ── TIPOGRAFIA ─────────────────────────────────────────────────────── */
	--font-display: "Playfair Display", "Times New Roman", Georgia, serif;
	--font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

	--fs-eyebrow: 0.78rem;
	--fs-body:    1rem;
	--fs-lead:    1.125rem;
	--fs-small:   0.875rem;
	--fs-h6:      1.125rem;
	--fs-h5:      1.375rem;
	--fs-h4:      1.75rem;
	--fs-h3:      clamp(1.75rem, 2.4vw, 2.25rem);
	--fs-h2:      clamp(2rem, 4vw, 3.25rem);
	--fs-h1:      clamp(2.5rem, 6vw, 5rem);

	--lh-tight:   1.08;
	--lh-snug:    1.2;
	--lh-body:    1.55;
	--tracking-eyebrow: 0.18em;
	--tracking-tight:   -0.015em;

	/* ── LAYOUT ─────────────────────────────────────────────────────────── */
	--container:  1320px;
	--gutter:     clamp(1.25rem, 3.5vw, 2.5rem);
	--pad-y:      80px;
	--pad-y-mob:  48px;
	--radius-sm:  4px;
	--radius-md:  12px;
	--radius-lg:  24px;
	--radius-pill: 999px;
	--header-h:   70px;

	/* ── MOTION ─────────────────────────────────────────────────────────── */
	--ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast:    180ms;
	--dur:         300ms;
	--dur-slow:    600ms;
}

/* =========================================================================
   BASE
   ========================================================================= */

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--text-dark);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
a:hover { opacity: 0.78; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 0.5em;
	color: inherit;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--mustard-yellow); color: var(--text-dark); }

img, video { user-select: none; }

/* =========================================================================
   UTILITIES
   ========================================================================= */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--pad-y); }
@media (max-width: 768px) { .section { padding-block: var(--pad-y-mob); } }

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	opacity: 0.85;
}

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

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 12px 28px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.3s var(--ease-out);
	background: var(--text-dark);
	color: var(--white);
}

.btn:hover { opacity: 1; transform: translateY(-1px); }

.btn-outline-white {
	border: 2px solid var(--white);
	color: var(--white);
	background: transparent;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	transition: all 0.3s;
	font-weight: 600;
	font-family: var(--font-body);
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.btn-outline-white:hover {
	background: var(--white);
	color: var(--dark-burgundy);
	opacity: 1;
}

.btn-solid-white {
	background: var(--white);
	color: var(--primary-red);
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-family: var(--font-body);
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	border: 2px solid var(--white);
	transition: all 0.3s;
}

.btn-solid-white:hover { background: transparent; color: var(--white); opacity: 1; }

.btn .arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .arrow,
.btn-outline-white:hover .arrow,
.btn-solid-white:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   1. HEADER FIXO — branco, 70px, sombra sutil no scroll
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	height: var(--header-h);
	transition: box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(26, 26, 26, 0.08);
}

.header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 2rem;
	height: var(--header-h);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--text-dark);
}

.site-brand__logo { height: 36px; width: auto; display: block; }

.nav__list {
	display: flex;
	justify-content: center;
	gap: 2.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--text-dark);
	position: relative;
	padding-block: 4px;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--primary-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease-out);
}

.nav__list a:hover { opacity: 1; }
.nav__list a:hover::after { transform: scaleX(1); }

.header__search {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 8px 14px;
	border: 1.5px solid var(--gray-line);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-dark);
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
	cursor: pointer;
}

.header__search:hover { border-color: var(--text-dark); }
.header__search svg { width: 16px; height: 16px; }

.menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: var(--text-dark);
	cursor: pointer;
	padding: 8px;
}

.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
	.nav, .header__search { display: none; }
	.menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.nav-drawer {
	position: fixed;
	inset: 0;
	background: var(--white);
	z-index: 200;
	transform: translateY(-100%);
	transition: transform var(--dur-slow) var(--ease-in-out);
	display: flex;
	flex-direction: column;
	padding: 1.5rem var(--gutter);
}

.nav-drawer.is-open { transform: translateY(0); }
.nav-drawer__head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); }
.nav-drawer__close { background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-drawer__close svg { width: 24px; height: 24px; }
.nav-drawer__list {
	list-style: none; margin: auto 0; padding: 0;
	display: flex; flex-direction: column; gap: 1.25rem;
}
.nav-drawer__list a {
	font-family: var(--font-display);
	font-size: clamp(2rem, 8vw, 3rem);
	font-weight: 700;
	color: var(--text-dark);
}

/* =========================================================================
   2. HERO — full-width 100vh, lifestyle bg, bottle silhouette overlay
   ========================================================================= */

.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	background-color: var(--cream);
}

.hero__media,
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.15) 100%);
	pointer-events: none;
}

/* ── HEINZ BOTTLE SILHOUETTE — outline only, sem preenchimento ───────── */
.heinz-bottle-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 280px;
	height: 480px;
	border: 4px solid var(--white);
	border-radius: 40% 40% 10% 10% / 20% 20% 5% 5%;
	pointer-events: none;
	z-index: 2;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Decorative "cap" detail on the silhouette to read more bottle-like */
.heinz-bottle-overlay::before {
	content: "";
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	width: 38%;
	height: 26px;
	border: 4px solid var(--white);
	border-radius: 4px 4px 0 0;
}

@media (max-width: 768px) {
	.hero { height: 60vh; min-height: 460px; }
	.heinz-bottle-overlay { width: 200px; height: 340px; border-width: 3px; }
	.heinz-bottle-overlay::before { width: 38%; height: 18px; top: -16px; border-width: 3px; }
}

/* =========================================================================
   3. "PRODUTOS QUE VOCÊ AMA" — 4 colored cards, hover scale
   ========================================================================= */

.products {
	background: var(--primary-red);
	color: var(--white);
}

.products__title {
	color: var(--white);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 28px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 2.5rem;
}

.products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 1 / 1.15;
	padding: 1.5rem;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--primary-red);
	color: var(--white);
	transition: transform 0.3s ease;
}

.product-card:hover { transform: scale(1.03); opacity: 1; }

.product-card--red      { background: var(--primary-red); }
.product-card--yellow   { background: var(--mustard-yellow); color: var(--text-dark); }
.product-card--burgundy { background: var(--dark-burgundy); }
.product-card--navy     { background: var(--navy-blue); }

.product-card__image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.product-card__image img {
	max-width: 70%;
	max-height: 72%;
	object-fit: contain;
	filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
	transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__image img { transform: translateY(-4px); }

.product-card__name {
	position: relative;
	z-index: 2;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1rem;
	color: inherit;
	margin: 0;
}

.product-card__arrow {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	width: 32px; height: 32px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	color: inherit;
	font-size: 14px;
	transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.product-card:hover .product-card__arrow {
	background: currentColor;
	color: var(--primary-red);
}

/* Mobile carousel — swipe via CSS scroll-snap (no extra plugin) */
@media (max-width: 768px) {
	.products__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0.75rem;
		padding-bottom: 1rem;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.products__grid::-webkit-scrollbar { display: none; }
	.product-card { scroll-snap-align: start; }
}

@media (min-width: 769px) and (max-width: 1023px) {
	.products__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   4. LIFESTYLE 2 — full-width 60vh, lifestyle image + bottle overlay
   ========================================================================= */

.lifestyle-2 {
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 420px;
	overflow: hidden;
}

.lifestyle-2 img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}

.lifestyle-2 .heinz-bottle-overlay {
	width: 320px;
	height: 520px;
}

@media (max-width: 768px) {
	.lifestyle-2 { height: 50vh; min-height: 340px; }
	.lifestyle-2 .heinz-bottle-overlay { width: 200px; height: 340px; border-width: 3px; }
	.lifestyle-2 .heinz-bottle-overlay::before { height: 18px; top: -16px; border-width: 3px; }
}

/* =========================================================================
   5. EDITORIAL "CULTIVADO DE VERDADE" — dark-burgundy bg, 2 cols
   ========================================================================= */

.editorial {
	background: var(--dark-burgundy);
	color: var(--white);
	overflow: hidden;
	position: relative;
}

.editorial__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.editorial__media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.editorial__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5));
}

.editorial__copy { max-width: 46ch; }

.editorial__title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	color: var(--white);
	font-size: var(--fs-h2);
	margin: 0 0 1.25rem;
}

.editorial__text {
	font-size: var(--fs-small);
	color: rgba(255,255,255,0.72);
	margin-bottom: 2rem;
	max-width: 42ch;
}

@media (max-width: 768px) {
	.editorial__inner { grid-template-columns: 1fr; }
	.editorial__media { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   6. "CONECTE-SE" — cream bg, centered, red Playfair title
   ========================================================================= */

.connect {
	background: var(--cream);
	text-align: center;
	color: var(--text-dark);
}

.connect__title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	color: var(--primary-red);
	font-size: var(--fs-h2);
	margin: 0 0 1rem;
}

.connect__text {
	max-width: 56ch;
	margin: 0 auto 2.5rem;
	color: var(--text-muted);
	font-size: var(--fs-small);
}

.connect__links {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.connect__icon {
	width: 52px; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--white);
	color: var(--primary-red);
	border: 1.5px solid var(--gray-line);
	transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.connect__icon:hover {
	background: var(--primary-red);
	color: var(--white);
	transform: translateY(-3px);
	opacity: 1;
}

.connect__icon svg { width: 20px; height: 20px; }

/* =========================================================================
   7. BRAND HERITAGE — red bg, 2 cols (logo+illustration / headline+button)
   ========================================================================= */

.heritage {
	background: var(--primary-red);
	color: var(--white);
	overflow: hidden;
	position: relative;
}

.heritage__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.heritage__media {
	position: relative;
	aspect-ratio: 4 / 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.heritage__logo {
	max-width: 320px;
	width: 72%;
	filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}

.heritage__illustration {
	max-width: 80%;
	max-height: 60%;
	object-fit: contain;
	filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35));
}

.heritage__title {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--white);
	font-size: var(--fs-h2);
	margin: 0 0 1.25rem;
	max-width: 15ch;
}

.heritage__text {
	font-size: 14px;
	color: rgba(255,255,255,0.85);
	max-width: 44ch;
	margin-bottom: 2rem;
	line-height: 1.65;
}

@media (max-width: 768px) {
	.heritage__inner { grid-template-columns: 1fr; }
	.heritage__media { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   8. FOOTER — 5 cols, #1A1A1A bg, #AAAAAA text, language selector
   ========================================================================= */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding-block: 3.5rem 1.5rem;
	font-size: 0.875rem;
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto;
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 2.5rem;
}

.footer__col h4 {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 1.25rem;
}

.footer__list,
.footer__list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__list a { color: var(--footer-text); transition: color var(--dur-fast) var(--ease-out); }
.footer__list a:hover { color: var(--white); opacity: 1; }

.footer__social { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.footer__social a {
	width: 36px; height: 36px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.08);
	color: var(--footer-text);
	transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.footer__social a:hover { background: var(--primary-red); color: var(--white); opacity: 1; }
.footer__social svg { width: 16px; height: 16px; }

.footer__lang { min-width: 180px; }

.footer__lang select {
	appearance: none;
	width: 100%;
	border: 1px solid rgba(255,255,255,0.15);
	background: transparent;
	padding: 0.6rem 2.25rem 0.6rem 1rem;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: inherit;
	color: var(--white);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M3 5l3 3 3-3' stroke='%23FFFFFF' stroke-width='1.4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
}

.footer__bottom {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 0.78rem;
	color: var(--footer-muted);
	text-align: center;
}

@media (max-width: 980px) {
	.footer__grid { grid-template-columns: repeat(2, 1fr); }
	.footer__lang { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
	.footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   ELEMENTOR INTEGRATION — keep builder pages on-brand by default
   ========================================================================= */

.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: var(--container);
}

.elementor-widget-heading .elementor-heading-title {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: var(--tracking-tight);
	line-height: var(--lh-tight);
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p { font-family: var(--font-body); }

.elementor-widget-button .elementor-button {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	border-radius: var(--radius-sm) !important;
	padding: 12px 28px !important;
	transition: all 0.3s var(--ease-out) !important;
}

.elementor-button:hover { transform: translateY(-1px); }

/* =========================================================================
   REVEAL ON SCROLL
   ========================================================================= */

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   PAGE / SINGLE BASE (non-Elementor pages)
   ========================================================================= */

.entry-header {
	padding-block: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
	background: var(--cream);
	text-align: center;
}

.entry-header h1 { font-size: var(--fs-h1); max-width: 18ch; margin-inline: auto; }

.entry-content {
	max-width: 720px;
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 4rem) var(--gutter);
	font-size: 1.075rem;
	line-height: 1.7;
}

.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content a { color: var(--primary-red); text-decoration: underline; text-underline-offset: 4px; }
