/**
 * Silkuasilk Core - front-end styles.
 * Design tokens come from :root (printed by SSK_Core::design_tokens).
 */

.ssk-container {
	width: 100%;
	max-width: var(--ssk-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------------------------------------------------------------
   Typography defaults for content rendered without Elementor
   --------------------------------------------------------------- */
.ssk-content {
	font-family: var(--ssk-font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ssk-text);
}
.ssk-content h1,
.ssk-content h2,
.ssk-content h3,
.ssk-content h4,
.ssk-content h5,
.ssk-content h6 {
	font-family: var(--ssk-font-head);
	color: var(--ssk-text);
	line-height: 1.3;
	margin: 1.6em 0 0.6em;
	font-weight: 700;
}
.ssk-content h2 { font-size: 28px; }
.ssk-content h3 { font-size: 23px; }
.ssk-content h4 { font-size: 19px; }
.ssk-content p { margin: 0 0 1.2em; }
.ssk-content ul,
.ssk-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.ssk-content li { margin-bottom: 0.45em; }
.ssk-content a { color: var(--ssk-primary-dark); text-decoration: underline; }
.ssk-content a:hover { text-decoration: none; }
.ssk-content img { max-width: 100%; height: auto; border-radius: var(--ssk-radius); }
.ssk-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.ssk-content th,
.ssk-content td { border: 1px solid var(--ssk-border); padding: 10px 12px; text-align: left; }
.ssk-content th { background: var(--ssk-soft); font-family: var(--ssk-font-head); }
.ssk-content blockquote {
	margin: 1.5em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--ssk-primary);
	background: var(--ssk-soft);
}

/* Minimal shim for the few Elementor section/widget blocks left in the
   migrated HTML, so they keep a clean look after Elementor's CSS is stripped. */
.ssk-content .elementor-section { margin: 0 0 28px; }
.ssk-content .elementor-widget-heading .elementor-heading-title {
	font-family: var(--ssk-font-head);
	color: var(--ssk-text);
	line-height: 1.3;
	margin: 0 0 .5em;
}
.ssk-content .elementor-widget-button .elementor-button {
	display: inline-block;
	background: var(--ssk-primary);
	color: #fff;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-family: var(--ssk-font-head);
	font-weight: 600;
	font-size: 15px;
	transition: background .15s ease;
}
.ssk-content .elementor-widget-button .elementor-button:hover { background: var(--ssk-primary-dark); }

/* ---------------------------------------------------------------
   Blog post layout with sticky sidebar form
   --------------------------------------------------------------- */
.ssk-site-main { padding: 40px 0 64px; background: #fff; }
.ssk-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
}
.ssk-post-title {
	font-family: var(--ssk-font-head);
	font-size: 36px;
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--ssk-text);
}
.ssk-post-meta { color: var(--ssk-muted); font-size: 14px; margin-bottom: 24px; }
.ssk-post-head { margin-bottom: 8px; }
.ssk-post-side { position: relative; }
.ssk-sticky {
	position: sticky;
	top: 96px;
	background: var(--ssk-soft);
	border-radius: var(--ssk-radius);
	padding: 24px;
}

@media (max-width: 900px) {
	.ssk-post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ssk-sticky { position: static; }
	.ssk-post-title { font-size: 28px; }
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.ssk-btn {
	display: inline-block;
	font-family: var(--ssk-font-head);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 14px 26px;
	border: 0;
	border-radius: var(--ssk-radius);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}
.ssk-btn-primary { background: var(--ssk-primary); color: #fff; }
.ssk-btn-primary:hover { background: var(--ssk-primary-dark); color: #fff; }
.ssk-btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.ssk-form-wrap { width: 100%; }
.ssk-form-head { margin-bottom: 16px; }
.ssk-form-title {
	font-family: var(--ssk-font-head);
	font-size: 21px;
	margin: 0 0 6px;
	color: var(--ssk-text);
}
.ssk-form-subtitle { margin: 0; font-size: 14px; color: var(--ssk-muted); line-height: 1.6; }
.ssk-field { margin-bottom: 14px; }
.ssk-label {
	display: block;
	font-family: var(--ssk-font-head);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--ssk-text);
}
.ssk-req { color: var(--ssk-primary-dark); }
.ssk-input {
	width: 100%;
	font-family: var(--ssk-font-body);
	font-size: 15px;
	padding: 11px 14px;
	border: 1px solid var(--ssk-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ssk-text);
	transition: border-color .15s ease;
}
.ssk-input:focus { outline: 0; border-color: var(--ssk-primary); }
.ssk-textarea { min-height: 96px; resize: vertical; }
.ssk-file { padding: 9px; font-size: 14px; }
.ssk-hint { margin: 6px 0 0; font-size: 12px; color: var(--ssk-muted); }
.ssk-form .ssk-submit { width: 100%; }
.ssk-form-msg { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.ssk-form-msg.ssk-ok { color: var(--ssk-primary-dark); }
.ssk-form-msg.ssk-err { color: #c0392b; }
.ssk-form.ssk-busy { opacity: .6; pointer-events: none; }

/* Inline (horizontal) layout used by the product CTA strip */
.ssk-layout-inline .ssk-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.ssk-layout-inline .ssk-field-message { grid-column: 1 / -1; }
.ssk-layout-inline .ssk-submit { grid-column: 1 / -1; width: auto; justify-self: start; }

/* ---------------------------------------------------------------
   Full-screen hero carousel
   --------------------------------------------------------------- */
.ssk-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--ssk-text);
}
.ssk-hero-full { height: 100vh; min-height: 520px; }
.ssk-hero-track { position: relative; width: 100%; height: 100%; }
.ssk-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease;
}
.ssk-hero-slide.is-active { opacity: 1; visibility: visible; }
.ssk-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ssk-hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.55) 100%);
}
.ssk-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	max-width: var(--ssk-maxw);
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
}
.ssk-hero-title {
	font-family: var(--ssk-font-head);
	font-size: clamp(30px, 5vw, 56px);
	line-height: 1.15;
	color: #fff;
	margin: 0;
	max-width: 780px;
	text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.ssk-hero-sub {
	font-size: clamp(15px, 1.6vw, 19px);
	color: rgba(255,255,255,.92);
	margin: 0;
	max-width: 640px;
	line-height: 1.6;
}
.ssk-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.85);
	color: #222;
	font-size: 18px;
	cursor: pointer;
	transition: background-color .18s ease;
}
.ssk-hero-nav:hover { background: #fff; }
.ssk-hero-prev { left: 18px; }
.ssk-hero-next { right: 18px; }
.ssk-hero-dots {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 9px;
}
.ssk-hero-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.5);
	cursor: pointer;
	transition: background-color .18s ease, transform .18s ease;
}
.ssk-hero-dot.is-active { background: #fff; transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
	.ssk-hero-slide { transition: none; }
}

/* ---------------------------------------------------------------
   Modal (popup)
   --------------------------------------------------------------- */
.ssk-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ssk-modal[hidden] { display: none; }
.ssk-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.ssk-modal-panel {
	position: relative;
	z-index: 1;
	width: min(520px, calc(100% - 40px));
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	padding: 30px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.ssk-modal-title {
	font-family: var(--ssk-font-head);
	font-size: 24px;
	margin: 0 0 6px;
	color: var(--ssk-text);
}
.ssk-modal-sub { margin: 0 0 18px; font-size: 14px; color: var(--ssk-muted); }
.ssk-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--ssk-soft);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--ssk-text);
}
.ssk-modal-close:hover { background: var(--ssk-border); }

/* ---------------------------------------------------------------
   Product CTA strip - uses the packoi product page background tone
   --------------------------------------------------------------- */
.ssk-cta-strip { background: var(--ssk-soft); padding: 56px 0; margin: 48px 0 0; }
.ssk-cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 40px;
	align-items: center;
	width: 100%;
	max-width: var(--ssk-maxw);
	margin: 0 auto;
	padding: 0 24px;
}
.ssk-cta-title {
	font-family: var(--ssk-font-head);
	font-size: 28px;
	margin: 0 0 10px;
	color: var(--ssk-text);
}
.ssk-cta-text { margin: 0; color: var(--ssk-muted); font-size: 16px; }
@media (max-width: 900px) {
	.ssk-cta-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------------------------------------------------------------
   Thank you page
   --------------------------------------------------------------- */
.ssk-thankyou { max-width: 720px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.ssk-thankyou h1 { font-family: var(--ssk-font-head); font-size: 34px; margin: 0 0 14px; color: var(--ssk-text); }
.ssk-thankyou p { color: var(--ssk-muted); font-size: 16px; line-height: 1.75; margin: 0 0 22px; }

/* ---------------------------------------------------------------
   Homepage product grid
   --------------------------------------------------------------- */
.ssk-products { padding: 76px 0; }
.ssk-section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.ssk-section-head h2 {
	font-family: var(--ssk-font-head);
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--ssk-text);
}
.ssk-section-head p { color: var(--ssk-muted); font-size: 17px; line-height: 1.7; margin: 0; }

.ssk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ssk-card {
	display: block;
	background: #fff;
	border: 1px solid var(--ssk-border);
	border-radius: var(--ssk-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--ssk-text);
	transition: transform .2s ease, box-shadow .2s ease;
}
.ssk-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.10); }
.ssk-card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	background-color: var(--ssk-soft);
}
.ssk-card-img-empty { background: linear-gradient(135deg, #e9f7ee 0%, #f5f5f5 100%); }
.ssk-card-title {
	font-family: var(--ssk-font-head);
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 14px 16px;
}
@media (max-width: 1024px) { .ssk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .ssk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Homepage CTA band (reuses .ssk-cta-inner grid from the strip) */
.ssk-cta { background: var(--ssk-soft); padding: 64px 0; margin-top: 8px; text-align: center; }

/* ---------------------------------------------------------------
   Product single page - packoi style light-gray canvas
   (layout is kept from the migrated silkua HTML for fidelity;
    Elementor front-end is fully stripped, only the tone + our
    card chrome are added)
   --------------------------------------------------------------- */
body.ssk-product-page { background: var(--ssk-soft); }
.ssk-product-main { background: var(--ssk-soft); padding: 40px 0 64px; min-height: 60vh; }
.ssk-product-page { background: #fff; border: 1px solid var(--ssk-border); border-radius: 16px; padding: 40px; box-shadow: 0 6px 24px rgba(25,17,5,.05); }
.ssk-product-head { margin: 0 0 26px; }
.ssk-product-title { font-family: var(--ssk-font-head); font-size: 34px; line-height: 1.2; color: var(--ssk-text); margin: 0; }
.ssk-product-content { font-size: 16px; line-height: 1.75; color: var(--ssk-text); }
.ssk-product-cta { margin-top: 40px; border-radius: var(--ssk-radius); }

@media (max-width: 768px) {
	.ssk-product-page { padding: 22px; border-radius: 12px; }
	.ssk-product-title { font-size: 26px; }
}

/* ---------------------------------------------------------------
   Lightweight footer (replaces the Elementor footer template)
   --------------------------------------------------------------- */
.ssk-site-footer { background: #11161c; color: #c7cdd6; padding: 52px 0 24px; margin-top: 56px; }
.ssk-footer-inner { font-size: 14px; }
.ssk-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.ssk-footer-h { font-family: var(--ssk-font-head); color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: .02em; }
.ssk-footer-list { list-style: none; margin: 0; padding: 0; }
.ssk-footer-list li { margin-bottom: 8px; }
.ssk-footer-list a { color: #c7cdd6; text-decoration: none; }
.ssk-footer-list a:hover { color: var(--ssk-primary); }
.ssk-footer-cta-text { margin: 0 0 12px; color: #9aa3af; }
.ssk-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px; color: #828b97; font-size: 13px; }
.ssk-footer-bottom p { margin: 0; }
@media (max-width: 900px) {
	.ssk-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 540px) {
	.ssk-footer-cols { grid-template-columns: 1fr; }
}
