/*
Theme Name: Sellora Ozon
Theme URI: https://example.com/
Author: Sellora Trade Services
Description: Block theme for the Sellora Ozon Global service: launch and store management on Ozon for brands from the UAE. On activation it creates all pages, sets the home page and adds a lead form (Leads menu in the admin).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sellora
*/

/* Layout: light sand pages, one dark band per key moment; hero photo fades into the page from the right */
:root {
	--sl-bg: var(--wp--preset--color--base, #F6F3EE);
	--sl-alt: var(--wp--preset--color--alt, #EEE8E0);
	--sl-surface: var(--wp--preset--color--surface, #FFFFFF);
	--sl-ink: var(--wp--preset--color--ink, #141414);
	--sl-muted: var(--wp--preset--color--muted, #5F5A54);
	--sl-line: var(--wp--preset--color--line, #E2DBD1);
	--sl-bronze: var(--wp--preset--color--bronze, #B0845E);
	--sl-bronze-dark: var(--wp--preset--color--bronze-dark, #8A6544);
	--sl-dark-muted: #B9B3AB;
	--sl-dark-line: rgba(246, 243, 238, .14);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sl-bronze); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* buttons */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; display: inline-flex; align-items: center; gap: 10px; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: "→"; font-size: 1.15em; line-height: 1; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--sl-ink); border: 1.5px solid currentColor; padding: 13.5px 26.5px; }
.sl-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--sl-bg); color: var(--sl-ink); }
.sl-dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--sl-bg); }
.wp-block-buttons { gap: 12px; }

/* header */
.sl-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--sl-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sl-line); }
.admin-bar .sl-header { top: var(--wp-admin--admin-bar--height, 32px); }
.sl-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.sl-header .wp-block-site-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sl-header .wp-block-site-title a { text-decoration: none; }
.sl-header .wp-block-navigation { font-size: 15px; font-weight: 500; gap: 32px; }
.sl-header .wp-block-navigation a { text-decoration: none; }
.sl-header .wp-block-navigation a:hover { color: var(--sl-bronze-dark); }
.sl-header .wp-block-button__link { padding: 11px 22px; font-size: 15px; }
@media (max-width: 600px) { .sl-header .sl-header-cta { display: none; } }

/* sections */
.sl-section { padding-block: clamp(64px, 8vw, 112px); }
.sl-alt { background: var(--sl-alt); }
.sl-dark { background: var(--sl-ink); color: var(--sl-bg); }
.sl-dark h2, .sl-dark h3 { color: var(--sl-bg); }
.sl-dark .sl-lead, .sl-dark p { color: var(--sl-dark-muted); }
.sl-dark .sl-eyebrow { color: var(--sl-bronze); }

.sl-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sl-muted); margin: 0; }
.sl-route span { color: var(--sl-bronze); padding-inline: .5em; }
.sl-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--sl-muted); max-width: 58ch; line-height: 1.6; }
.sl-display { font-size: clamp(44px, 6.4vw, 86px); font-weight: 800; line-height: .98; letter-spacing: -.04em; margin: 0; }
.sl-accent { display: block; color: var(--sl-bronze); }
.sl-head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-bottom: 48px; }
.sl-head > * { margin: 0 !important; }
.sl-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sl-bronze-dark); margin: 0; }
.sl-dark .sl-label { color: var(--sl-bronze); }

/* hero */
.sl-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.sl-hero-cols { position: static; margin: 0; }
.sl-hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; }
.sl-hero-text > * { margin: 0 !important; }
.sl-hero-media { position: static; }
.sl-hero-img { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; z-index: 1;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%); mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
.sl-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 100%; }
.sl-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 72px; background: linear-gradient(to bottom, transparent, var(--sl-bg)); z-index: 1; pointer-events: none; }
.sl-features { list-style: none; padding: 24px 0 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; border-top: 1px solid var(--sl-line); max-width: 560px; font-size: 15px; font-weight: 500; }
.sl-features li { display: flex; align-items: center; gap: 12px; }
.sl-features li::before { content: ""; width: 26px; height: 26px; flex: none; background: var(--sl-ink);
	-webkit-mask: var(--sl-icon) center / contain no-repeat; mask: var(--sl-icon) center / contain no-repeat; }
.sl-features li:nth-child(1) { --sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='13' width='4' height='8' rx='1'/%3E%3Crect x='10' y='8' width='4' height='13' rx='1'/%3E%3Crect x='17' y='3' width='4' height='18' rx='1'/%3E%3C/svg%3E"); }
.sl-features li:nth-child(2) { --sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.sl-features li:nth-child(3) { --sl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7.5L12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='M3 7.5l9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E"); }
@media (max-width: 900px) {
	.sl-hero-cols { flex-direction: column; }
	.sl-hero-media { order: -1; width: 100%; }
	.sl-hero-img { position: relative; inset: auto; width: 100%; height: 260px; border-radius: 20px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
	.sl-hero::after { display: none; }
}

/* page hero */
.sl-page-hero { background: linear-gradient(180deg, var(--sl-alt), var(--sl-bg)); padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.sl-page-hero-inner { display: flex; flex-direction: column; gap: 22px; }
.sl-page-hero-inner > * { margin: 0 !important; }
.sl-page-hero + .sl-section:not(.sl-alt):not(.sl-dark) { padding-top: clamp(24px, 3vw, 48px); }
.sl-page-hero .sl-display { font-size: clamp(40px, 6vw, 76px); max-width: 17ch; }

/* grids and cards */
.sl-grid { display: grid; gap: 20px; }
.sl-grid > * { margin: 0 !important; min-width: 0; }
.sl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .sl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sl-grid-3, .sl-grid-2 { grid-template-columns: 1fr; } }
.sl-card { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.sl-card > * { margin: 0 !important; }
.sl-card p { color: var(--sl-muted); }
.sl-card-dark { background: rgba(246, 243, 238, .04); border-color: var(--sl-dark-line); }
.sl-card-dark p { color: var(--sl-dark-muted); }
.sl-card-accent { background: transparent; border-style: dashed; border-color: var(--sl-bronze); }
.sl-stat-card { border-top: 2px solid var(--sl-ink); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.sl-stat-card > * { margin: 0 !important; }
.sl-stat-card p { color: var(--sl-muted); }
.sl-stat-card .sl-stat { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--sl-ink); font-variant-numeric: tabular-nums; }

/* steps: a real sequence, so numbered */
.sl-steps { display: grid; gap: 28px; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.sl-steps-5 { --n: 5; } .sl-steps-4 { --n: 4; }
.sl-steps > * { margin: 0 !important; min-width: 0; }
.sl-step { border-top: 1px solid var(--sl-line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sl-step > * { margin: 0 !important; }
.sl-step p { color: var(--sl-muted); font-size: 16px; }
.sl-step .sl-step-num { color: var(--sl-bronze-dark); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
@media (max-width: 1000px) { .sl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sl-steps { grid-template-columns: 1fr; } }

/* pricing */
.sl-prices { margin-bottom: 32px; }
.sl-price { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.sl-price > * { margin: 0 !important; }
.sl-price p { color: var(--sl-muted); }
.sl-price .sl-amount { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--sl-ink); font-variant-numeric: tabular-nums; }
.sl-price-main { background: var(--sl-ink); border-color: var(--sl-ink); color: var(--sl-bg); }
.sl-price-main h3 { color: var(--sl-bg); }
.sl-price-main p { color: var(--sl-dark-muted); }
.sl-price-main .sl-label { color: var(--sl-bronze); }
.sl-price-main .sl-amount { color: var(--sl-bronze); }

/* two-column lists */
.sl-two { gap: clamp(32px, 6vw, 80px); margin: 0; }
.sl-h-list { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.sl-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sl-line); }
.sl-list li { padding: 15px 0 15px 26px; border-bottom: 1px solid var(--sl-line); position: relative; color: var(--sl-muted); }
.sl-list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 8px; border-radius: 2px; background: var(--sl-bronze); transform: rotate(45deg); }
.sl-list strong { color: var(--sl-ink); font-weight: 700; }
.sl-service { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); }
.sl-service .sl-label { margin-bottom: 8px; }

/* pilot + cta */
.sl-pilot { align-items: center !important; margin: 0; }
.sl-pilot > * > * { margin-block: 0 0 16px; }
.sl-right { justify-content: flex-end; }
@media (max-width: 781px) { .sl-right { justify-content: flex-start; } }
.sl-cta-inner { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.sl-cta-inner > * { margin: 0 !important; }

/* about */
.sl-founder-row { align-items: center !important; gap: clamp(32px, 6vw, 80px); margin: 0; }
.sl-founder img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 420px; }
.sl-founder-row .wp-block-column > * + * { margin-top: 18px; }

/* faq */
.sl-faq { max-width: 860px; border-top: 1px solid var(--sl-line); }
.sl-faq > * { margin: 0 !important; }
.sl-faq details { border-bottom: 1px solid var(--sl-line); padding: 0; }
.sl-faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-size: 19px; font-weight: 700; position: relative; }
.sl-faq summary::-webkit-details-marker { display: none; }
.sl-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 400; color: var(--sl-bronze-dark); transition: transform .2s ease; }
.sl-faq details[open] summary::after { transform: rotate(45deg); }
.sl-faq details p { color: var(--sl-muted); margin: 0 0 20px; max-width: 70ch; }

/* contact + lead form */
.sl-contact { gap: clamp(32px, 6vw, 80px); margin: 0; }
.sl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.sl-form .sl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sl-form .sl-field-wide { grid-column: 1 / -1; }
.sl-form label { font-size: 14px; font-weight: 600; }
.sl-form input[type="text"], .sl-form input[type="email"], .sl-form input[type="tel"], .sl-form input[type="url"], .sl-form select, .sl-form textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--sl-ink); background: var(--sl-bg); border: 1px solid var(--sl-line); border-radius: 12px; padding: 13px 14px; }
.sl-form textarea { min-height: 120px; resize: vertical; }
.sl-form input:focus, .sl-form select:focus, .sl-form textarea:focus { outline: 2px solid var(--sl-bronze); outline-offset: 1px; border-color: transparent; }
.sl-form .sl-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sl-muted); font-weight: 400; }
.sl-form .sl-consent input { margin-top: 4px; }
.sl-form .sl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sl-form button { grid-column: 1 / -1; justify-self: start; font: inherit; font-weight: 600; font-size: 16px; background: var(--sl-ink); color: var(--sl-bg); border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; }
.sl-form button::after { content: " →"; }
.sl-form-note { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-size: 15px; margin: 0; }
.sl-form-note.is-ok { background: #E7F0E6; color: #24502B; }
.sl-form-note.is-error { background: #F6E3DF; color: #7A2E21; }
@media (max-width: 600px) { .sl-form { grid-template-columns: 1fr; } }

/* footer */
.sl-footer { border-top: 1px solid var(--sl-line); padding-block: 56px 32px; font-size: 15px; }
.sl-footer-top { gap: 40px; margin: 0; }
.sl-footer .wp-block-site-title { font-size: 20px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.sl-footer .wp-block-site-title a { text-decoration: none; }
.sl-footer p { color: var(--sl-muted); margin: 0 0 8px; }
.sl-footer h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sl-muted); font-weight: 700; margin: 0 0 14px; }
.sl-footer .wp-block-navigation { gap: 10px; }
.sl-footer .wp-block-navigation a { text-decoration: none; }
.sl-footer-bottom { border-top: 1px solid var(--sl-line); margin-top: 40px; padding-top: 22px; font-size: 13px; }
.sl-footer-bottom p { margin: 0 0 6px; }

/* simple pages and posts */
.sl-simple { padding-block: 72px 96px; }

/* Wider layout: text aligns to the left edge, section headings keep a readable width */
.sl-hero .sl-lead { max-width: 46ch; }
.sl-head, .sl-cta-inner { max-width: var(--wp--style--global--content-size) !important; }
.sl-head > *, .sl-cta-inner > * { max-width: 780px; }

.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }

/* Clickable card that opens the lead pop-up */
.sl-open-lead { cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.sl-open-lead:hover, .sl-open-lead:focus-visible { background: var(--sl-surface); border-style: solid; transform: translateY(-2px); outline: none; }
.sl-open-lead .sl-card-link { color: var(--sl-ink) !important; font-weight: 600; margin-top: auto !important; }

/* Lead pop-up */
.sl-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: clamp(24px, 4vw, 44px); border: 0; border-radius: 24px; background: var(--sl-bg); color: var(--sl-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.sl-modal::backdrop { background: rgba(20, 18, 16, .55); }
.sl-modal h2 { margin: 6px 0 8px; font-size: clamp(26px, 3vw, 36px); }
.sl-modal .sl-eyebrow { margin: 0; }
.sl-modal-lead { color: var(--sl-muted); margin: 0 0 20px; }
.sl-modal .sl-form { background: transparent; border: 0; padding: 0; }
.sl-modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sl-alt); font-size: 26px; line-height: 1; cursor: pointer; color: var(--sl-ink); }
@media (max-width: 600px) { .sl-modal .sl-form { grid-template-columns: 1fr; } }
.sl-modal, .sl-modal *, .sl-form, .sl-form * { box-sizing: border-box; }

/* Message after a sent request */
.sl-form-done { text-align: center; padding: clamp(24px, 4vw, 40px) 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sl-form-done h3 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.sl-form-done p { margin: 0; color: var(--sl-muted); max-width: 40ch; }
.sl-form-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #E7F0E6; color: #24502B; font-size: 30px; line-height: 64px; font-weight: 700; }
.sl-btn-close-modal { margin-top: 12px; font: inherit; font-weight: 600; font-size: 16px; background: var(--sl-ink); color: var(--sl-bg); border: 0; border-radius: 999px; padding: 14px 32px; cursor: pointer; }

/* Same select look in every browser (Safari draws its own) */
.sl-form select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141210' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; min-height: 52px; }
.sl-modal:focus, .sl-modal:focus-visible { outline: none; }
