/* ============================================================
   COOKING METHOD PAGE
   Extracted from the main style.css to cut unused CSS weight on
   every OTHER page - this file now loads ONLY on its own template,
   enqueued conditionally in functions.php. See that file's comment
   for the full explanation (PageSpeed Insights 'Reduce unused CSS'
   finding).
   ============================================================ */

/* ============================================================
   COOKING METHOD PAGE
   ============================================================ */
.cooking-hero { position: relative; overflow: hidden; padding: 90px 0; }
.cooking-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.cooking-hero .container { position: relative; z-index: 1; }
.cooking-hero-content { max-width: 560px; }
.cooking-hero-title { font-family: var(--font-heading); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--green-mid); margin-bottom: 16px; line-height: 1.25; }
.cooking-hero-desc { font-size: 18px; font-weight: 300; color: var(--text-dark); line-height: 1.7; }

@media (max-width: 768px) {
	.cooking-hero { padding: 64px 0; }
	.cooking-hero-content { max-width: 100%; }
}
@media (max-width: 480px) {
	.cooking-hero { padding: 48px 0; }
	.cooking-hero-title { font-size: 24px; }
	.cooking-hero-desc { font-size: 15px; }
}

.cooking-method-page { background: var(--green-pale); }
.cm-listing { padding: 0px; }
.cm-variety { padding: 50px 0 60px; background: #FFFFFF; }
.cm-variety:nth-of-type(odd) { background: #EDF6EE; }
.cm-variety + .cm-variety { border-top: 1px solid rgba(11,58,38,0.1); }
.cm-empty { text-align: center; font-size: 16px; color: var(--gray-500); padding: 60px 0; }

.cm-variety-badge { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cm-variety-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.cm-variety-icon svg { width: 26px; height: 26px; }
.cm-variety-icon img { width: 100%; height: 100%; object-fit: cover; }
.cm-variety-eyebrow { display: none; } /* design shows the icon + title only, no "Variety 01" label above it */
.cm-variety-title { font-family: var(--font-heading); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--green); letter-spacing: -0.5px; margin: 0; }

.cm-video { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.cm-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; padding: 0; border: 0; margin: 0; cursor: pointer; background: none; }
.cm-video-thumb img, .cm-video-thumb video, .cm-video iframe, .cm-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.cm-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: #FF0000; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(0,0,0,0.4); z-index: 2; }
.cm-play-btn svg { width: 26px; height: 26px; color: var(--white); margin-left: 4px; }

.cm-info-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-bottom: 40px; }
.cm-info-card { background: var(--white); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.cm-info-card h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--green); margin: 0 0 14px; }
.cm-prep-list { counter-reset: cmstep; margin: 0; padding: 0; list-style: none; }
.cm-prep-list li { counter-increment: cmstep; display: flex; gap: 10px; font-size: 15px; font-weight: 300; color: var(--text-dark); line-height: 1.6; margin-bottom: 10px; }
.cm-prep-list li:last-child { margin-bottom: 0; }
.cm-prep-list li::before { content: counter(cmstep) "."; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.cm-serving-para { font-size: 15px; font-weight: 300; color: var(--text-dark); line-height: 1.6; margin: 0 0 14px; }
.cm-serving-list { margin: 0; padding: 0; list-style: none; }
.cm-serving-list li { display: flex; gap: 10px; font-size: 15px; font-weight: 300; color: var(--text-dark); line-height: 1.6; margin-bottom: 10px; }
.cm-serving-list li:last-child { margin-bottom: 0; }
.cm-serving-list li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.cm-methods-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.cm-methods-title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cm-methods-divider { flex: 1; height: 1px; background: rgba(11,58,38,0.18); }
.cm-methods-tag { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #B9821F; white-space: nowrap; }

.cm-methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cm-method-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cm-method-head { background: var(--green-dark); padding: 20px 22px; }
.cm-method-head-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cm-method-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.15); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.cm-method-icon svg { width: 20px; height: 20px; }
.cm-method-icon img { width: 100%; height: 100%; object-fit: cover; }
.cm-method-head-text { min-width: 0; }
.cm-method-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #A8D08D; margin: 0 0 4px; }
.cm-method-name { font-family: var(--font-heading); font-size: clamp(22px, 2vw, 18px); font-weight: 700; color: var(--white); margin: 0; line-height: 1; }
.cm-method-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-method-stat { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 12px; }
.cm-method-stat span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #A8D08D; margin-bottom: 2px; }
.cm-method-stat strong { font-size: 14px; font-weight: 500; color: var(--white); }

.cm-method-steps { counter-reset: cmm; list-style: none; margin: 0; padding: 18px 22px 6px; flex: 1; }
.cm-method-steps li { counter-increment: cmm; display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 300; color: var(--text-dark); line-height: 1.5; margin-bottom: 12px; }
.cm-method-steps li::before { content: counter(cmm); flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #F3ECD9; color: #B9821F; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

.cm-method-watch { margin: 4px 22px 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--green-mid); color: var(--white); border-radius: 50px; padding: 10px 20px 10px 10px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.cm-method-watch:hover { background: var(--green); }
.cm-watch-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,1); flex-shrink: 0; }
.cm-watch-icon svg { width: 10px; height: 10px; }

@media (max-width: 900px) {
	.cm-info-grid { grid-template-columns: 1fr; }
	.cm-methods-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
	.cm-variety { padding: 36px 0 44px; }
	.cm-variety-icon { width: 46px; height: 46px; border-radius: 12px; }
	.cm-variety-title { font-size: 20px; }
	.cm-info-card { padding: 20px 22px; }
	.cm-methods-head { flex-wrap: wrap; row-gap: 6px; }
	.cm-methods-divider { display: none; }
	.cm-play-btn { width: 54px; height: 54px; }
	.cm-play-btn svg { width: 20px; height: 20px; }
}

/* Raw vs Boiled comparison (static section) */
.cm-compare { position: relative; padding: 70px 0 80px; background: var(--green-pale); overflow: hidden; }
.cm-compare-art { position: absolute; bottom: 20px; width: 110px; height: auto; pointer-events: none; }
.cm-compare-art-left { left: 0%; }
.cm-compare-art-right { right: 0%; transform: scaleX(-1); }
.cm-compare .container { position: relative; z-index: 1; }

.cm-compare-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.cm-compare-desc { font-size: 17px; font-weight: 300; color: var(--text-body); line-height: 1.7; }

.cm-compare-grid { display: flex; gap: 26px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
.cm-compare-card { flex: 1; border-radius: 22px; padding: 36px 34px; background: var(--white); border: 1px solid var(--gray-200); }
.cm-compare-card-tinted { background: #E7ECE8; border-color: transparent; }
.cm-compare-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--green-pale); color: var(--green-mid); margin-bottom: 20px; }
.cm-compare-card-tinted .cm-compare-icon { background: var(--white); }
.cm-compare-icon svg { width: 26px; height: 26px; }
.cm-compare-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--green-dark); margin: 0 0 14px; }
.cm-compare-card p { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.7; margin: 0; }

@media (max-width: 900px) {
	.cm-compare-art { width: 80px; }
	.cm-compare-grid { flex-direction: column; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
	.cm-compare { padding: 48px 0 56px; }
	.cm-compare-art { display: none; }
	.cm-compare-card { padding: 28px 24px; }
}

/* Pro tips (static section) - left column stays sticky top+bottom while the
   right column of cards scrolls past it. The grid's default "stretch" makes
   .pt-left as tall as .pt-cards, which is what gives the sticky pieces room
   to travel independently instead of both jumping to the same spot at once. */
.pt-section { padding: 80px 0 100px; background: var(--white); }
.pt-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.pt-left { display: flex; flex-direction: column; justify-content: space-between; }
.pt-left-top { position: sticky; top: calc(var(--header-h) + 40px); }
.pt-desc { font-size: 16px; font-weight: 300; color: var(--text-body); line-height: 1.7; margin-top: 16px; max-width: 420px; }
/* margin-left cancels out the container's own left inset (half the whitespace either
   side of the centered, max-width container), so the image's left edge lands flush
   against the true viewport edge (x: 0) instead of just the column's own left edge. */
.pt-left-art { position: sticky; bottom: 0; width: 220px; height: auto; align-self: flex-start; margin-top: 40px; margin-left: calc(-50vw + 50%); }

.pt-cards { display: flex; flex-direction: column; gap: 24px; }
.pt-card { position: relative; border-radius: 22px; padding: 32px 90px 40px 34px; overflow: hidden; }
.pt-card:nth-child(odd) { background: #F3F8F4; }
.pt-card:nth-child(even) { background: #E7ECE8; }
.pt-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--green-dark); margin: 0 0 14px; }
.pt-card p { font-size: 16px; font-weight: 300; color: var(--text-body); line-height: 1.7; margin: 0; }

.pt-num { position: absolute; right: 26px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt-num-text { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.pt-num-line { width: 1px; height: 18px; background: currentColor; opacity: 0.5; }
.pt-card:nth-child(odd) .pt-num { color: var(--green-dark); }
.pt-card:nth-child(even) .pt-num { color: #9BA8A0; }

@media (max-width: 1024px) {
	.pt-grid { grid-template-columns: 1fr; gap: 36px; }
	.pt-left { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
	.pt-left-top, .pt-left-art { position: static; margin-top: 0; }
	.pt-left-art { width: 140px; flex-shrink: 0; margin-left: 0; }
	/* .hero-star-export's rules that used to be here moved to the main
	   style.css - that class belongs to the home page + Export page hero,
	   not Cooking Method; it had been swept in here by mistake. */
}
@media (max-width: 640px) {
	.pt-section { padding: 48px 0 56px; }
	.pt-left { flex-direction: column; }
	.pt-left-art { display: none; }
	.pt-card { padding: 26px 70px 30px 24px; }
	.pt-card h3 { font-size: 19px; }
	.pt-card p { font-size: 14.5px; }
	/* .value-index's rule that used to be here moved to the main style.css
	   - it's part of the home page's CORE VALUES section. */
}
/* The @media (max-width: 1280px) block that used to be here only
   contained .hero-star-export / .export-hero-star-export rules (both
   moved to the main style.css / page-styles/export.css respectively) -
   nothing in it belonged to Cooking Method, so the block itself is gone. */

