/* ==========================================================================
   RSG Softsync — main stylesheet
   Design language carried from the Kinko product theme: light surfaces,
   blue + emerald brand, Plus Jakarta Sans headings / Inter body, bold CTAs.
   ========================================================================== */

:root {
	/* Surfaces */
	--bg:          #FFFFFF;
	--bg-2:        #F8FAFC;
	--bg-3:        #EEF2F8;
	--surface:     #FFFFFF;
	--line:        #E2E8F0;
	--line-2:      #CFD8E4;

	/* Brand */
	--accent:      #2563EB;
	--accent-2:    #60A5FA;
	--accent-deep: #1D4ED8;
	--accent-weak: rgba(37, 99, 235, .08);
	--emerald:     #10B981;
	--emerald-deep:#047857;

	/* Text */
	--text:        #3F4858;
	--ink:         #0F172A;
	--muted:       #64748B;

	/* Effects */
	--grad:        linear-gradient(135deg, #1D4ED8 0%, #60A5FA 100%);
	--grad-emerald:linear-gradient(135deg, #047857 0%, #34D399 100%);
	--grad-soft:   linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 70%);
	--radius:      14px;
	--radius-sm:   10px;
	--radius-lg:   22px;
	--pill:        999px;
	--shadow-sm:   0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
	--shadow:      0 12px 32px -14px rgba(15, 23, 42, .22);
	--shadow-lg:   0 30px 70px -24px rgba(15, 23, 42, .30);
	--ring:        0 0 0 4px rgba(37, 99, 235, .16);

	/* Type */
	--font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head:   "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

	/* Layout */
	--container:   1200px;
	--header-h:    72px;
	--gutter:      clamp(20px, 5vw, 40px);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
	z-index: 1000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
}

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-block: clamp(64px, 9vw, 120px); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
.section__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 18px; }
.section__lead--center { margin-inline: auto; }

/* Eyebrow ---------------------------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 700; font-size: 13px;
	letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
	margin: 0 0 18px;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-emerald); }
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow--light .eyebrow__dot { background: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1;
	padding: 14px 22px; border-radius: var(--pill); border: 1.5px solid transparent;
	cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(37,99,235,.7); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37,99,235,.75); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--accent-deep); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,23,42,.5); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-branding { margin-right: auto; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 44px; width: auto; }

.brand-text {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.02em;
}
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--grad); color: #fff; font-size: 15px; font-weight: 800;
	padding: 6px 9px; border-radius: 10px; letter-spacing: 0;
}

.site-nav .nav-menu { display: flex; gap: 4px; }
.site-nav .nav-menu a {
	display: inline-block; padding: 8px 14px; border-radius: var(--pill);
	font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text);
	transition: background .15s ease, color .15s ease;
}
.site-nav .nav-menu a:hover { color: var(--ink); background: var(--bg-3); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
	border-radius: var(--radius-sm); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 110px); background: var(--grad-soft); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.hero__bg::before { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(96,165,250,.55), transparent 70%); }
.hero__bg::after  { width: 460px; height: 460px; bottom: -200px; left: -120px; background: radial-gradient(circle, rgba(16,185,129,.4), transparent 70%); }

.hero__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
.hero__subtitle { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 36ch; margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 22px; font-size: 14px; color: var(--muted); }

.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.hero__img { width: 100%; }

.floating-card {
	position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px;
	font-family: var(--font-head);
}
.floating-card strong { font-size: 24px; color: var(--ink); font-weight: 800; }
.floating-card__k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-deep); font-weight: 700; }
.floating-card__s { font-size: 13px; color: var(--muted); font-weight: 500; }
.floating-card__badge { font-size: 16px; font-weight: 800; color: var(--emerald-deep); }
.floating-card--a { left: -22px; bottom: 40px; }
.floating-card--b { right: -16px; top: 36px; }

/* Stats ------------------------------------------------------------------ */
.stats { background: var(--ink); color: #fff; }
.stats__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px 56px; align-items: center; padding-block: clamp(40px, 5vw, 56px); }
.stats__title { margin: 0; font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stats__text { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 62ch; }

/* About ------------------------------------------------------------------ */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about__img { width: 100%; }

.checklist { display: grid; gap: 16px; margin-top: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.checklist svg { flex: none; color: var(--emerald); margin-top: 1px; }

/* Services --------------------------------------------------------------- */
.services { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 30px 26px; box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
	border-radius: var(--radius); background: var(--accent-weak); color: var(--accent-deep); margin-bottom: 18px;
}
.card__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--muted); margin: 0; }

/* Product (Kinko) -------------------------------------------------------- */
.product {
	position: relative; overflow: hidden;
	background: var(--ink); color: #fff;
}
.product::before {
	content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -200px; border-radius: 50%;
	background: radial-gradient(circle, rgba(37,99,235,.6), transparent 70%); filter: blur(50px);
}
.product::after {
	content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(16,185,129,.35), transparent 70%); filter: blur(60px);
}
.product__panel {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.product__content { position: relative; z-index: 1; }
.product__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; }
.product__text { color: rgba(255,255,255,.78); font-size: clamp(16px, 2vw, 19px); margin-top: 16px; }
.product__features { display: grid; gap: 12px; margin: 26px 0 32px; }
.product__features li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.product__features svg { color: #6EE7B7; flex: none; }
.product__media { position: relative; z-index: 1; }
.product__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.product__img { width: 100%; }

/* Contact ---------------------------------------------------------------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__details { display: grid; gap: 22px; margin-top: 32px; }
.contact__details li { display: grid; gap: 4px; }
.contact__label { font-family: var(--font-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-deep); }
.contact__details a, .contact__details span:not(.contact__label) { font-size: 18px; color: var(--ink); font-weight: 500; }

.contact__form-wrap {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field textarea {
	width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
	padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.field--consent { margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body); font-weight: 400; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); cursor: pointer; }
.consent span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent a { font-weight: 600; text-decoration: underline; }
.consent input:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

.rsg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form button { margin-top: 6px; }
.contact-form button:disabled { opacity: .65; cursor: progress; }
.contact-form__status { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.contact-form__status.is-success { color: var(--emerald-deep); }
.contact-form__status.is-error { color: #E11D48; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(48px, 6vw, 72px); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-text--footer, .site-footer .custom-logo { filter: none; }
.footer-logo-link { display: inline-flex; }
.footer-logo { max-height: 44px; width: auto; }
.brand-text--footer { color: #fff; }
.site-footer__tagline { margin: 16px 0 0; font-size: 15px; max-width: 38ch; }
.social-links { display: flex; gap: 16px; margin-top: 18px; }
.social-links a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; }
.social-links a:hover { color: #fff; }
.site-footer__nav { display: flex; justify-content: flex-end; }
.footer-menu { display: grid; gap: 12px; }
.footer-menu a { color: rgba(255,255,255,.72); font-family: var(--font-head); font-weight: 600; }
.footer-menu a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.site-footer__bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.62); }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { font-size: 13px; color: rgba(255,255,255,.62); }
.legal-links a:hover { color: #fff; }

/* Pages (legal etc.) ----------------------------------------------------- */
.page-hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.page-hero__back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent-deep); margin-bottom: 18px; }
.page-hero__back:hover { gap: 9px; }
.page-hero__title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.page-hero__meta { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.section--page { padding-block: clamp(48px, 7vw, 88px); }

.prose { font-size: 17px; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin-top: 1.4em; }
.prose a { text-decoration: underline; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .5em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); font-family: var(--font-head); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-2); color: var(--muted); }

/* Generic article (blog fallback) ---------------------------------------- */
.entry { margin-bottom: 56px; }
.entry__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.entry__title a { color: var(--ink); }
.entry__thumb { display: block; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
.entry__content { font-size: 17px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.stats__inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden; transition: max-height .25s ease; box-shadow: var(--shadow);
	}
	.site-header.is-open .site-nav { max-height: 70vh; }
	.site-nav .nav-menu { flex-direction: column; gap: 2px; padding: 14px var(--gutter); }
	.site-nav .nav-menu a { padding: 12px 14px; }
	.site-header__actions .btn--sm { display: none; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; max-width: 560px; }
	.floating-card--a { left: 4px; }
	.floating-card--b { right: 4px; }

	.about__grid { grid-template-columns: 1fr; }
	.about__media { order: 2; }
	.product__panel { grid-template-columns: 1fr; }
	.product__media { order: -1; }
	.contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.cards { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__nav { justify-content: flex-start; }
	.floating-card { display: none; }
	.hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
