/* Cyprus Robotics: site styles. All colours live in :root. */
:root {
    --bg: #ffffff;
    --surface: #f4f8fa;
    --ink: #10243e;
    --ink-muted: #4a5d73;
    --line: #e2eaf0;
    --accent: #12b5a6;          /* decorative teal */
    --accent-strong: #0b7c73;   /* buttons: white text passes AA */
    --accent-ink: #0b7c73;      /* links and small text on white */
    --accent-soft: #e4f6f3;     /* tints */
    --brand-green: #8dc640;     /* from the logo */
    --sea: #0488ad;             /* logo blue, decorative */
    --sea-ink: #036f8d;         /* text and icons on light sea tint */
    --sea-soft: #e3f2f8;
    --sea-bg: #e6f3f9;
    --radius: 18px;
    --radius-small: 10px;
    --shadow: 0 1px 2px rgba(16, 36, 62, 0.04), 0 8px 24px rgba(16, 36, 62, 0.06);
    --shadow-hover: 0 2px 4px rgba(16, 36, 62, 0.05), 0 16px 40px rgba(16, 36, 62, 0.1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legacy-anchor { position: absolute; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-small); }
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 24px;
    background: var(--accent-strong); color: #fff;
    border: 2px solid var(--accent-strong); border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-muted); }
.button-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.button-large { min-height: 56px; padding: 14px 30px; font-size: 1.1rem; }
.button .icon { width: 22px; height: 22px; color: currentColor; }

/* ---------- Icons ---------- */
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-ink); }
.icon-lg { width: 56px; height: 56px; stroke-width: 1.4; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16, 36, 62, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }

.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.button) { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .2s, background-color .2s; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="true"]:not(.button) { color: var(--ink); background: var(--surface); }
.site-nav .nav-cta { margin-left: 8px; }

/* Language switch (header + footer) */
.lang-item { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.site-nav .lang-switch { gap: 2px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a, .site-nav .lang-switch a:not(.button) { display: block; padding: 6px 8px; border-radius: 8px; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .04em; background: none; }
.lang-switch a:hover, .site-nav .lang-switch a:not(.button):hover { color: var(--ink); background: var(--surface); }
.lang-switch a[aria-current="page"], .site-nav .lang-switch a[aria-current="page"]:not(.button) { color: var(--accent-ink); background: var(--accent-soft); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; position: relative; }
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; content: ""; }
.menu-toggle-bar { top: 50%; margin-top: -1px; }
.menu-toggle-bar::before { left: 0; top: -6px; }
.menu-toggle-bar::after { left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(60% 70% at 85% 30%, var(--accent-soft) 0%, rgba(228, 246, 243, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--accent-ink); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-green), var(--accent)); }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.55; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ink-muted); font-size: .92rem; }

.hero-visual { margin: 0; }
.floorplan { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(16, 36, 62, 0.1)); }
.fp-floor { fill: #ffffff; }
.fp-gridline { fill: none; stroke: #edf2f5; stroke-width: 1; }
.fp-outline { fill: none; stroke: #c9d7e0; stroke-width: 3; }
.fp-wall { fill: none; stroke: #c9d7e0; stroke-width: 3; stroke-linecap: round; }
.fp-furn rect { fill: var(--surface); stroke: #dbe5ec; stroke-width: 1.5; }
.fp-route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; }
.fp-pin circle { fill: #fff; stroke: var(--accent-strong); stroke-width: 3; }
.fp-scan { fill: var(--accent); opacity: .14; }
.fp-scan-outer { opacity: .07; }
.fp-body { fill: var(--accent-strong); stroke: #fff; stroke-width: 3; }
.fp-heading { fill: #fff; }
.fp-label text { fill: var(--ink-muted); font: 600 14px var(--font); letter-spacing: .02em; }
.js .fp-scan-outer { animation: scan 3.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes scan { 0% { transform: scale(.55); opacity: .18; } 100% { transform: scale(1.15); opacity: 0; } }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .98rem; }
.proof strong { color: var(--ink); }

.hero-teaser {
    display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; max-width: 560px;
    border: 1px solid #cfe6f0; border-radius: 16px; background: rgba(238, 247, 251, 0.85);
    color: var(--ink-muted); text-decoration: none; font-size: .95rem; line-height: 1.45;
    transition: border-color .2s, background-color .2s;
}
.hero-teaser:hover { border-color: var(--sea); background: var(--sea-soft); }
.hero-teaser strong { color: var(--ink); }
.hero-teaser .icon { color: var(--sea-ink); width: 30px; height: 30px; }
.hero-teaser-arrow { margin-left: auto; color: var(--sea-ink); font-size: 1.2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-muted); font-size: 1.12rem; }

/* Robots */
.robot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.robot-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.robot-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.robot-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }
.robot-media img { width: 100%; height: 100%; object-fit: cover; }
.robot-body { padding: 22px 22px 26px; }
.robot-body h3 { margin-top: 14px; font-size: 1.2rem; }
.robot-body p { margin-top: 8px; color: var(--ink-muted); font-size: 1rem; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 700; letter-spacing: .03em; }

.pilot { margin-top: 36px; color: var(--ink-muted); font-size: 1.05rem; }
.pilot a { font-weight: 600; text-decoration: none; }
.pilot a:hover { text-decoration: underline; }

/* Platform + About split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.feature-list { display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 18px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list .icon { padding: 9px; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); }
.feature-list h3 { font-size: 1.08rem; }
.feature-list p { margin-top: 4px; color: var(--ink-muted); font-size: .98rem; }

/* Environmental & marine */
.section-sea { position: relative; background: linear-gradient(180deg, var(--sea-bg) 0%, #f2f9fc 100%); padding-top: clamp(88px, 11vw, 136px); }
.sea-waves { position: absolute; top: 0; left: 0; width: 100%; height: 48px; fill: var(--bg); }
.section-tint + .section-sea .sea-waves { fill: var(--surface); }
.eyebrow-sea { color: var(--sea-ink); }
.eyebrow-sea::before { background: linear-gradient(90deg, var(--sea), #57b6d3); }
.marine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.marine-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid #d6e9f1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.marine-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.marine-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--sea-soft), #f4fafc); }
.marine-media .icon { color: var(--sea-ink); }
.marine-media img { width: 100%; height: 100%; object-fit: cover; }
.marine-body { padding: 22px 22px 26px; }
.marine-body h3 { font-size: 1.2rem; }
.marine-body p { margin-top: 8px; color: var(--ink-muted); font-size: 1rem; }

/* Engineering */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.service-card .icon { padding: 10px; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); }
.service-card h3 { margin-top: 20px; font-size: 1.2rem; }
.service-card p { margin-top: 8px; color: var(--ink-muted); }

.stack { display: grid; gap: 18px; margin: 40px 0 0; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.stack > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
.stack dt { font-weight: 700; font-size: .95rem; }
.stack dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: .92rem; color: var(--ink-muted); }

/* About */
.split-about { align-items: center; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.figures li { padding: 26px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.figure-num { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--accent-ink); }
.figure-label { display: block; margin-top: 4px; color: var(--ink-muted); font-size: .95rem; line-height: 1.35; }

/* Contact */
.contact-panel {
    max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px);
    text-align: center; border-radius: 28px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(141, 198, 64, 0.16) 0%, rgba(141, 198, 64, 0) 60%),
        linear-gradient(160deg, var(--accent-soft), #f2faf9);
    border: 1px solid #cdeee8;
}
.contact-panel h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.contact-panel > p { margin: 16px auto 0; max-width: 52ch; color: var(--ink-muted); font-size: 1.12rem; }
.contact-panel .button { margin-top: 30px; word-break: break-all; }
.contact-panel .contact-place { margin-top: 16px; font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5d2e0; padding: 48px 0 40px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #fff; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.site-footer a { color: #c5d2e0; text-decoration: none; }
.site-footer nav a { white-space: nowrap; }
.site-footer a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.copyright { color: #93a5b8; font-size: .88rem; }
.site-footer .lang-switch a { color: #c5d2e0; }
.site-footer .lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-footer .lang-switch a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- Reveal on scroll (only with JS, never with reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .js .fp-scan-outer { animation: none; }
    .robot-card:hover, .marine-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .robot-grid, .marine-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; }
    .service-grid, .service-grid-2 { grid-template-columns: 1fr; }
    .stack > div { grid-template-columns: 1fr; gap: 8px; }
    .footer-inner { grid-template-columns: 1fr; }
    .site-footer nav ul { justify-content: flex-start; }
}

/* Compact menu: Greek and Turkish labels are long, so collapse before they crowd the logo */
@media (max-width: 1080px) {
    .menu-toggle { display: inline-block; }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(16, 36, 62, 0.08);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; }
    .site-nav a:not(.button) { padding: 12px 14px; border-radius: 12px; }
    .site-nav .nav-cta { margin: 8px 0 0; }
    .site-nav .lang-switch { flex-direction: row; padding: 0; gap: 6px; }
    .lang-item { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .site-nav .lang-switch a:not(.button) { padding: 10px 14px; font-size: .95rem; }
    .site-nav .button { width: 100%; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .robot-grid, .marine-grid { grid-template-columns: 1fr; }
    .robot-media:not(:has(img)), .marine-media:not(:has(img)) { aspect-ratio: 5 / 2; }
    .proof { grid-template-columns: 1fr; gap: 8px; }
    .figures { gap: 10px; }
    .figures li { padding: 18px 8px; }
    .site-footer nav ul { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 28px; }
    .hero-actions .button { flex: 1 1 auto; }
}
