/* Innocam base: tokens, reset, header, footer, booking band and shared pieces.
   Page-specific styles live in page-*.css (one per page template). */

:root {
	--ink: #0b2a37;
	--petrol: #254a59;
	--teal: #00aab4;
	--teal-hover: #19c3cd;
	--teal-deep: #00737a;
	--concrete: #f1f0eb;
	--white: #ffffff;
	--slate: #4e6470;
	--mist: #a9bcc4;
	--steel: #8a9aa3;
	--line-dark: #2a4a57;
	--line-light: #d9d7cf;
	--focus: #ffd166;
	--font: "Geologica", "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--gutter: clamp(16px, 3.4vw, 48px);
	--max: 1344px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img { height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.site { font-family: var(--font); color: var(--ink); background: var(--concrete); width: 100%; overflow-x: clip; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--teal); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 999px; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
html[lang] { scroll-padding-top: 72px; }

/* Shared type and helpers (from the design) */
a { color: var(--teal-deep); }
a:hover { color: var(--ink); }
.x { font-family: var(--font); }
.mono { font-family: var(--mono); }
.lbl { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.tick { width: 16px; height: 1px; background: var(--teal); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.jt { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.btn-p { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-p:hover { background: var(--teal-hover) !important; color: var(--ink); }
.btn-g { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; background: transparent; }
.btn-g:hover { background: rgba(255,255,255,.1) !important; border-color: #fff !important; color: #fff; }
.lnk { color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lnk-d { color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lnk:hover, .lnk-d:hover { color: var(--teal-hover); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: 80px; margin-bottom: -80px; background: transparent; border-bottom: 1px solid transparent; transition: height .2s ease, background-color .2s ease, border-color .2s ease; }
.admin-bar .site-header { top: 32px; }
.site-header.is-solid { height: 64px; background: var(--ink); border-bottom-color: var(--line-dark); }
.site-header__in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 34px; width: auto; transition: height .2s ease; }
.site-header.is-solid .site-header__logo img { height: 28px; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: #fff; opacity: .86; text-decoration: none; }
.nav a:hover { opacity: 1; color: #fff; }
.nav a[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--teal); padding-bottom: 4px; }
.site-header__end { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-header__cta { height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.lng { display: flex; align-items: center; gap: 6px; }
.fl { display: block; line-height: 0; opacity: .45; padding: 3px 2px 5px; border-bottom: 2px solid transparent; transition: opacity .2s ease; }
.fl:hover { opacity: .85; }
.fl[aria-current] { opacity: 1; border-bottom-color: var(--teal); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: transparent; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.m-menu { display: none; }

@media (max-width: 900px) {
	.nav { display: none !important; }
	.menu-btn { display: inline-flex; width: 40px; height: 40px; }
	.site-header__in { gap: 10px; }
	.site-header__end { gap: 10px; }
	.site-header__logo img { height: 24px; }
	.site-header.is-solid .site-header__logo img { height: 24px; }
	.site-header__cta { padding: 0 14px; font-size: 13px; }
	.lng svg { width: 20px; height: 13px; }
	.m-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--line-dark); box-shadow: 0 24px 40px rgba(11,42,55,.35); opacity: 0; transform: translateY(-12px); transition: opacity .26s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
	.m-menu.is-open { opacity: 1; transform: translateY(0); }
	.m-menu > a { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
	.m-menu.is-open > a { opacity: 1; transform: none; }
	.m-menu.is-open > a:nth-child(2) { transition-delay: .03s; } .m-menu.is-open > a:nth-child(3) { transition-delay: .06s; } .m-menu.is-open > a:nth-child(4) { transition-delay: .09s; } .m-menu.is-open > a:nth-child(5) { transition-delay: .12s; } .m-menu.is-open > a:nth-child(6) { transition-delay: .15s; }
	.menu-btn svg path { transition: d .25s ease; }
	.m-menu a { color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
	.m-menu a[aria-current="page"] { color: var(--teal); }
	.m-menu .btn-p { margin-top: 16px; justify-content: center; border-bottom: 0; color: var(--ink); font-size: 16px; }
	.site-header.menu-open { background: var(--ink); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Booking band (template-parts/book-call.php) */
.book { background: var(--petrol); color: #fff; }
.book__in { max-width: var(--max); margin: 0 auto; padding: 112px var(--gutter); display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.book__text { flex: 1 1 480px; min-width: 0; }
.book__title { margin: 20px 0 0; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.book__p { margin: 24px 0 0; max-width: 480px; font-size: 19px; line-height: 30px; color: var(--mist); }
.book__steps { list-style: none; margin: 32px 0 0; padding: 0; max-width: 480px; font: 500 14px/20px var(--mono); }
.book__steps li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #3c6272; }
.book__steps li:last-child { border-bottom: 1px solid #3c6272; }
.book__steps li > span { width: 16px; height: 1px; background: var(--teal); flex: 0 0 auto; }
.book__cal { flex: 1 1 440px; min-width: 0; max-width: 560px; background: var(--ink); color: #fff; padding: 32px; }
.book__k { color: var(--teal); }
.book__card { margin-top: 10px; font-size: 22px; font-weight: 600; }
.book__meta { margin-top: 6px; color: var(--mist); }
.book__widget { margin-top: 20px; min-width: 280px; height: 700px; background: var(--ink); }
.book__note { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--mist); }
.book__none { margin: 24px 0 0; font-size: 16px; line-height: 26px; color: var(--mist); }
.book__btn { margin-top: 24px; width: 100%; justify-content: center; }
@media (max-width: 900px) {
	.book__in { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
	.book__steps { display: none; }
	.book__cal { padding: 20px; }
	.book__widget { height: 760px; margin-left: -8px; margin-right: -8px; }
}

/* Footer */
.foot { background: var(--ink); color: #fff; }
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot__brand { flex: 1 1 320px; min-width: 0; }
.foot__brand img { height: 40px; width: auto; }
.foot__brand p { margin: 20px 0 0; max-width: 340px; font-size: 15px; line-height: 24px; color: var(--mist); }
.foot__nav { flex: 0 1 200px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot__contact { flex: 0 1 300px; font-style: normal; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--mist); }
.foot__h { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.foot__phone { display: inline-flex; align-items: center; gap: 10px; }
.foot__bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.foot__bottom a { color: var(--slate); }
@media (max-width: 900px) {
	.foot__in { padding-top: 48px; padding-bottom: 96px; }
	.foot__top { gap: 28px 32px; }
	.foot__nav { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
	.foot__nav > .foot__h { grid-column: 1 / -1; }
}

/* WhatsApp button and mobile booking bar */
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 999px; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11,42,55,.25); }
.m-bar { display: none; }
@media (max-width: 900px) {
	.wa-fab { right: 16px; bottom: 80px; width: 52px; height: 52px; }
	.m-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; height: 54px; border-radius: 999px; background: var(--teal); color: var(--ink) !important; font-weight: 600; font-size: 16px; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transform: translateY(160%); transition: transform .3s ease; }
	.m-bar.is-on { transform: translateY(0); }
}

/* Logo strip animation (Trusted by) */
.track { display: flex; align-items: center; gap: 72px; width: max-content; animation: slide 48s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Video pop-up (shared by Robotics and Home) */
.pop-bg { position: fixed; inset: 0; z-index: 95; background: rgba(11,42,55,.9); display: flex; align-items: center; justify-content: center; padding: 24px; animation: pop-bg-in .24s ease both; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pop-bg .pop { animation: pop-in .32s cubic-bezier(.2,.7,.2,1) both; }
.pop-bg.is-closing { animation: pop-bg-out .2s ease both; }
.pop-bg.is-closing .pop { animation: pop-out .2s ease both; }
@keyframes pop-bg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-bg-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
.pop { width: 100%; max-width: min(1120px, calc((100vh - 120px) * 16 / 9)); display: flex; flex-direction: column; gap: 12px; }
.pop-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; }
.pop-x { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font: 600 14px/20px var(--font); cursor: pointer; }
.pop-x:hover, .pop-x:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.pop-v { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pop-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 900px) { .pop-bg { padding: 12px; } }

/* Entrance animations (from the design), only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
	.hin > * { animation: hin 1s cubic-bezier(.2,.7,.2,1) both; }
	.hin > *:nth-child(2) { animation-delay: .12s; }
	.hin > *:nth-child(3) { animation-delay: .24s; }
	.hin > *:nth-child(4) { animation-delay: .36s; }
	@keyframes hin { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
	@supports (animation-timeline: view()) {
		.rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
		@keyframes rv { from { opacity: 0; translate: 0 44px; } to { opacity: 1; translate: 0 0; } }
	}
}
@media (prefers-reduced-motion: reduce) {
	.track { animation: none; }
	.pop-bg, .pop-bg .pop, .m-menu, .m-menu > a { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* Fallback page (page.php, 404) */
.basic { max-width: 820px; margin: 0 auto; padding: 160px var(--gutter) 96px; font-size: 18px; line-height: 30px; }
.basic h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; margin: 0 0 24px; }
.basic-hero { background: var(--ink); height: 80px; }

/* Hide on phones (used by page templates) */
@media (max-width: 900px) { .hide-s { display: none !important; } }

/* Text pages (privacy policy) */
.basic h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; font-weight: 700; }
.basic ul { padding-left: 20px; }
.basic li { margin: 6px 0; }
.basic a { color: var(--teal-deep); }

/* Footer logo link and language switch */
.foot__logo { display: inline-block; line-height: 0; }
.foot__lang a { color: var(--mist); }
.foot__lang a:hover { color: #fff; }
.foot__lang [aria-current] { color: var(--teal); }

/* Call banner between sections (template-parts/cta-band.php) */
.cta-band { padding: 0 0 72px; background: transparent; }
.cta-band--dark .cta-band__strip { background: var(--petrol); }
.cta-band__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 32px 40px; background: var(--ink); color: #fff; }
.cta-band__text { flex: 1 1 420px; min-width: 0; }
.cta-band__title { margin: 10px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.cta-band__btn { flex: 0 0 auto; }
@media (max-width: 900px) {
	.cta-band { padding-bottom: 48px; }
	.cta-band__strip { padding: 24px 20px; }
	.cta-band__btn { width: 100%; justify-content: center; }
}
