/*
 * Homepage (Phase 7). The page is built in Elementor; sections are containers carrying these classes,
 * so editors can change text/images/buttons while layout stays consistent.
 *
 * Elementor containers are driven by CSS variables (--display, --padding-*, --gap); we set those
 * rather than fighting Elementor's own rules.
 */

/* ---- Section rhythm on Elementor containers -------------------------- */
body.ashika .e-con.ah-section {
	--padding-top: var(--ah-section-y);
	--padding-bottom: var(--ah-section-y);
	--gap: 0px;
	--row-gap: 0px;
}

body.ashika .e-con.ah-section--tight {
	--padding-top: calc(var(--ah-section-y) * 0.6);
	--padding-bottom: calc(var(--ah-section-y) * 0.6);
}

/* Inner layout containers: no default container padding. */
body.ashika .ah-section .e-con.e-child {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

/* Widget wrappers shouldn't add stray spacing. */
body.ashika .ah-section .elementor-widget:not(:last-child) { margin-bottom: 0; }
body.ashika .ah-section .elementor-widget-shortcode,
body.ashika .ah-section .elementor-shortcode { width: 100%; }

/* Eyebrow as an Elementor Heading widget (size "p"): */
body.ashika .ah-eyebrow-w .elementor-heading-title {
	display: inline-block;
	margin: 0;
	font-family: var(--ah-font-sans);
	font-size: var(--ah-fs-eyebrow);
	font-weight: 600;
	letter-spacing: var(--ah-tracking-eyebrow);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ah-gold-600);
}

body.ashika .ah-surface-forest .ah-eyebrow-w .elementor-heading-title { color: var(--ah-gold-200); }

/* Elementor buttons: keep theme colours against the kit's global link colour. */
body.ashika a.elementor-button,
body.ashika a.elementor-button:hover,
body.ashika a.elementor-button:focus { color: var(--_fg); }
body.ashika .ah-elementor-secondary a.elementor-button:hover { color: var(--ah-ivory); }
body.ashika .ah-elementor-light a.elementor-button { --_bg: var(--ah-ivory); --_bg-hover: var(--ah-white); --_fg: var(--ah-forest); --_bd: var(--ah-ivory); }

/* Section header row (eyebrow + title left, link/button right). */
body.ashika .e-con.ah-head {
	--display: flex;
	--flex-direction: row;
	--flex-wrap: wrap;
	--align-items: flex-end;
	--justify-content: space-between;
	--gap: var(--ah-space-4) var(--ah-space-6);
	margin-bottom: var(--ah-space-7);
}

body.ashika .ah-head .e-con.ah-head__text { --gap: var(--ah-space-3); --width: auto; max-width: 640px; }
body.ashika .ah-head .elementor-heading-title { margin: 0; }
body.ashika .ah-head__text .elementor-widget-text-editor p { margin: 0; color: var(--ah-stone); }

body.ashika .e-con.ah-head--center { --flex-direction: column; --align-items: center; text-align: center; }
body.ashika .ah-head--center .ah-head__text { margin-inline: auto; }

/* ---- 1 · Hero ---------------------------------------------------------- */
body.ashika .e-con.ah-home-hero { --padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); --padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }

body.ashika .e-con.ah-hero__grid {
	--display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--ah-space-8);
}

body.ashika .e-con.ah-hero__text { --gap: var(--ah-space-5); --align-items: flex-start; }
body.ashika .ah-hero__title .elementor-heading-title { font-size: var(--ah-fs-display); line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
body.ashika .ah-hero__title em { font-style: italic; color: var(--ah-forest); }
body.ashika .ah-hero__lead p { font-size: var(--ah-fs-body-lg); max-width: 34rem; margin: 0; color: var(--ah-ink); }

body.ashika .e-con.ah-hero__actions { --display: flex; --flex-direction: row; --flex-wrap: wrap; --gap: var(--ah-space-3); margin-top: var(--ah-space-2); --width: auto; }
body.ashika .ah-hero__actions > .elementor-widget { --container-widget-width: auto; width: auto; }

body.ashika .e-con.ah-hero__visual {
	--display: grid;
	position: relative;
	grid-template-columns: 1fr 0.62fr;
	grid-template-rows: 1fr 1fr;
	gap: var(--ah-space-4);
	aspect-ratio: 1 / 0.92;
}

body.ashika .ah-hero__visual .elementor-widget-image { height: 100%; }
body.ashika .ah-hero__visual .elementor-widget-image .elementor-widget-container,
body.ashika .ah-hero__visual .elementor-widget-image a { display: block; height: 100%; }
body.ashika .ah-hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--ah-radius-lg);
	box-shadow: var(--ah-shadow-2);
}

body.ashika .ah-hero__img--main { grid-row: 1 / 3; }
body.ashika .ah-hero__img--a { grid-column: 2; grid-row: 1; }
body.ashika .ah-hero__img--b { grid-column: 2; grid-row: 2; }

/* ---- 2 · Categories ---------------------------------------------------- */
.ah-cat-grid .ah-cat-card__media {
	display: block;
	background: var(--ah-sand);
}

.ah-cat-grid .ah-cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12%;
}

.ah-cat-card__body { display: grid; gap: var(--ah-space-1); }
.ah-cat-card__body .ah-link { justify-self: start; margin-top: var(--ah-space-2); }

/* ---- 3 · Brand story --------------------------------------------------- */
body.ashika .e-con.ah-story__grid {
	--display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--ah-space-9);
}

body.ashika .ah-story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ah-radius-lg); }
body.ashika .e-con.ah-story__text { --gap: var(--ah-space-4); --align-items: flex-start; }
body.ashika .ah-story__text .elementor-heading-title { margin: 0; }
body.ashika .ah-story__text p { color: var(--ah-ink); font-size: var(--ah-fs-body-lg); }
body.ashika .ah-story__text .ah-rule--gold { margin: var(--ah-space-2) 0; }

/* ---- 4 · Why choose ---------------------------------------------------- */
body.ashika .e-con.ah-why__grid {
	--display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--ah-space-6);
}

body.ashika .e-con.ah-why__item { --gap: var(--ah-space-3); --align-items: flex-start; position: relative; padding-top: 72px !important; }

body.ashika .ah-why__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--ah-sage);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244C38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-5-3-8-7-8-11a8 8 0 0 1 16 0c0 4-3 8-8 11z'/%3E%3Cpath d='M12 21V9'/%3E%3C/svg%3E");
}

body.ashika .ah-why__item--pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244C38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.25'/%3E%3C/svg%3E"); }
body.ashika .ah-why__item--herb::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244C38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14z'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E"); }
body.ashika .ah-why__item--chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244C38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5l1.1-3.9A8 8 0 1 1 8.6 18.5z'/%3E%3C/svg%3E"); }

body.ashika .ah-why__item .elementor-heading-title { font-family: var(--ah-font-sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin: 0; }
body.ashika .ah-why__item p { margin: 0; color: var(--ah-stone); font-size: 0.9375rem; line-height: 1.6; }

/* ---- 5 · Featured collection (alternate layout) ----------------------- */
body.ashika .e-con.ah-feature__grid {
	--display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 3fr);
	gap: var(--ah-gutter);
	align-items: stretch;
}

body.ashika .e-con.ah-feature__panel {
	--gap: var(--ah-space-4);
	--align-items: flex-start;
	--justify-content: flex-end;
	min-height: 100%;
	padding: var(--ah-space-7) var(--ah-space-6) !important;
	border-radius: var(--ah-radius-md);
	background: var(--ah-forest);
	color: rgba(250, 248, 242, 0.85);
}

body.ashika .ah-feature__panel .elementor-heading-title { margin: 0; color: var(--ah-ivory); font-size: var(--ah-fs-h3); line-height: 1.2; }
body.ashika .ah-feature__panel .ah-eyebrow-w .elementor-heading-title { font-size: var(--ah-fs-eyebrow); color: var(--ah-gold-200); }
body.ashika .ah-feature__panel em { color: var(--ah-gold-200); }
body.ashika .ah-feature__panel p { margin: 0; color: rgba(250, 248, 242, 0.8); }

/* ---- 6 · Ingredients --------------------------------------------------- */
body.ashika .e-con.ah-ingr__grid {
	--display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--ah-space-4);
}

body.ashika .e-con.ah-ingr__item {
	--gap: var(--ah-space-2);
	--align-items: flex-start;
	padding: var(--ah-space-5) !important;
	border-radius: var(--ah-radius-md);
	background: rgba(255, 255, 255, 0.6);
	box-shadow: inset 0 0 0 1px rgba(73, 107, 80, 0.15);
}

body.ashika .ah-ingr__item .elementor-heading-title { margin: 0; font-size: 1.375rem; }
body.ashika .ah-ingr__item .ah-ingr__latin .elementor-heading-title { font-family: var(--ah-font-serif); font-style: italic; font-size: 0.875rem; color: var(--ah-stone); }
body.ashika .ah-ingr__item p { margin: 0; font-size: 0.8125rem; color: var(--ah-stone); line-height: 1.5; }
body.ashika .ah-ingr__item a { color: var(--ah-forest); text-decoration: underline; text-underline-offset: 2px; }

body.ashika .ah-ingr__note p { margin: var(--ah-space-5) 0 0; font-size: var(--ah-fs-small); color: var(--ah-stone); }

/* ---- 7 · Blog preview (rendered by [ashika_posts]) -------------------- */
.ah-post-card { display: flex; flex-direction: column; height: 100%; }

.ah-post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--ah-radius-md);
	background: var(--ah-sand);
}

.ah-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ah-ease-out); }
.ah-post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ah-sage), var(--ah-sand)); }
.ah-post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: var(--ah-space-2); padding-top: var(--ah-space-4); }
body.ashika .ah-post-card__title { margin: 0; font-size: var(--ah-fs-h4); line-height: 1.3; }
body.ashika .ah-post-card__title a { color: var(--ah-ink); text-decoration: none; }
body.ashika .ah-post-card__title a:hover { color: var(--ah-forest); }
.ah-post-card__excerpt { margin: 0; color: var(--ah-stone); font-size: 0.9375rem; }
.ah-post-card__meta { margin: 0; font-size: var(--ah-fs-micro); color: var(--ah-stone); text-transform: uppercase; letter-spacing: 0.08em; }
.ah-post-card .ah-link { margin-top: auto; align-self: flex-start; }

@media (hover: hover) { .ah-post-card:hover .ah-post-card__media img { transform: scale(1.04); } }

/* ---- 8 · Newsletter (rendered by [ashika_newsletter]) ----------------- */
.ah-newsletter {
	display: grid;
	grid-template-columns: 1fr minmax(0, 460px);
	align-items: center;
	gap: var(--ah-space-7);
	padding: var(--ah-space-8) var(--ah-space-7);
	border-radius: var(--ah-radius-lg);
	background: var(--ah-sage);
}

body.ashika .ah-newsletter h2 { margin: 0 0 var(--ah-space-2); }
.ah-newsletter p { margin: 0; }

/* Editor-only notes from shortcodes (empty sections). */
.ah-editor-note {
	margin: 0;
	padding: var(--ah-space-4);
	border: 1px dashed var(--ah-gold-600);
	border-radius: var(--ah-radius-sm);
	color: var(--ah-gold-600);
	font-size: var(--ah-fs-small);
	text-align: center;
}

/* Hide a whole Elementor section when its only shortcode produced nothing (logged-out visitors). */
body.ashika .e-con.ah-autohide:not(:has(.ah-grid, .ah-newsletter, .ah-editor-note)) { display: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
	body.ashika .e-con.ah-hero__grid,
	body.ashika .e-con.ah-story__grid { grid-template-columns: 1fr; gap: var(--ah-space-7); }
	body.ashika .e-con.ah-hero__visual { max-width: 640px; }
	body.ashika .e-con.ah-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.ashika .e-con.ah-feature__grid { grid-template-columns: 1fr; }
	body.ashika .e-con.ah-ingr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ah-newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	body.ashika .e-con.ah-hero__visual { aspect-ratio: 1 / 0.95; gap: var(--ah-space-3); }
	body.ashika .ah-hero__visual img { border-radius: var(--ah-radius-md); }
	body.ashika .e-con.ah-why__grid { grid-template-columns: 1fr; gap: var(--ah-space-6); }
	body.ashika .e-con.ah-ingr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ah-space-3); }
	body.ashika .e-con.ah-ingr__item { padding: var(--ah-space-4) !important; }
	.ah-newsletter { padding: var(--ah-space-6) var(--ah-space-5); }
	body.ashika .e-con.ah-head { margin-bottom: var(--ah-space-6); }
}
