/* Ciarus Technologies — site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f8;
  --surface: #ffffff;
  --text: #15151c;
  --muted: #5d5d6b;
  --border: #e6e6ee;
  --pink: #e8166f;
  --purple: #7b2a96;
  --blue: #1d8fe1;
  --accent: #c2185b;
  --gradient: linear-gradient(120deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
  --max: 1200px;
  --header-h: 76px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0e14;
  --bg-alt: #16161f;
  --surface: #1b1b26;
  --text: #f1f1f5;
  --muted: #a3a3b5;
  --border: #2a2a38;
  --accent: #ff4f9a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(123, 42, 150, .3); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--light { background: #fff; color: #15151c; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 20px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: block; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
}

/* Hero */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px;
  background: radial-gradient(circle, rgba(232, 22, 111, .14), transparent 65%); pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art img { width: 100%; height: auto; }
:root[data-theme="dark"] .hero-art img, :root[data-theme="dark"] .split-art img { filter: brightness(.92); }

/* Page header (inner pages) */
.page-hero { padding: 90px 0 70px; background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(29, 143, 225, .16), transparent 65%);
}
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); margin-top: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Split / mission */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-art img { width: 100%; height: auto; }

/* Service cards */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--gradient); color: #fff;
  display: grid; place-items: center; margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); flex: 1; }
.card-link { font-weight: 600; text-decoration: none; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { gap: 10px; }

/* CTA band */
.cta-band {
  background: var(--gradient); color: #fff; border-radius: 28px; padding: 64px 56px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; margin: 0; max-width: 620px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; margin: 0;
}
.quote .tag { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.quote blockquote { margin: 0 0 24px; flex: 1; font-size: 1rem; }
.quote blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3.4rem; line-height: .8; height: 30px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.quote strong { display: block; }
.quote span.role { font-size: .9rem; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.stat-number { font-family: "Plus Jakarta Sans", sans-serif; font-size: 3.2rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); margin-top: 8px; }

/* Image collage (about) */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.collage img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.collage img:first-child { margin-top: 48px; }
.wide-image { border-radius: 28px; overflow: hidden; }
.wide-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Services detail */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.service-nav a { text-decoration: none; border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; background: var(--surface); }
.service-nav a:hover { border-color: var(--accent); color: var(--accent); }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 90px 0; border-top: 1px solid var(--border); }
.service:first-of-type { border-top: 0; }
.service .tagline { font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; }
.service p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.benefits { list-style: none; padding: 0; margin: 0 0 24px; }
.benefits li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--border); position: relative; color: var(--text); }
.benefits li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.service-panel { background: var(--bg-alt); border-radius: var(--radius); padding: 34px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.service-panel h3 { margin-bottom: 20px; }
.service-panel .note { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.office { background: var(--bg-alt); border-radius: var(--radius); padding: 36px; }
.office h3 { font-size: 1.5rem; }
.office dl { margin: 0; display: grid; gap: 18px; }
.office dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.office dd { margin: 4px 0 0; font-weight: 500; }
.office a { text-decoration: none; }
.office a:hover { color: var(--accent); }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(123, 42, 150, .15); }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; }
.form-status.ok { color: #1a9a5a; }
.form-status.err { color: #d33; }

/* Footer */
.site-footer { background: #0b0b11; color: #c9c9d6; padding: 80px 0 30px; margin-top: 0; }
.site-footer a { color: #c9c9d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: #15151c; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid #23232e; margin-bottom: 56px; }
.footer-cta h2 { color: #fff; margin: 0; max-width: 640px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2c2c3a; display: grid; place-items: center; }
.socials a:hover { background: var(--gradient); border-color: transparent; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #23232e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; }

/* Scroll to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--gradient); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 40; box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero .container, .split, .service, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 72px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 30px; }
  .service { padding: 64px 0; }
  .service-panel { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .testimonials, .stats, .form, .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}
