/* ==========================================================================
   Atnovix - main stylesheet
   Colours and type follow the original Elementor site (atnovix.com).
   ========================================================================== */

/* Self-hosted fonts (no request to Google Fonts). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
}

:root {
  --purple: #4B41E5;
  --purple-light: #736AFF;
  --purple-dark: #3A31C4;
  --blue: #467FF7;
  --blue-dark: #2F66DB;
  --icon-blue: #6EC1E4;
  --navy: #1C244B;
  --ink: #222222;
  --body: #4A4A4A;
  --muted: #7A7A7A;
  --page-bg: #E7ECFE;
  --panel: #E2E7E9;
  --card: #FFFFFF;
  --border: #DDE3F0;
  --footer-text: #324A6D;
  --footer-muted: #5E6F8C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

input, textarea, button { font-family: 'Roboto', system-ui, sans-serif; font-size: 15px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(28, 36, 75, 0.06);
}

.nav {
  max-width: 1400px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 70px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 15px;
  line-height: 1.3;
  border: 0; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); color: #fff; }

/* Right side of the header: language switch, phone, contact */
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}
.lang-switch a { color: var(--muted); padding: 3px 2px; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active { color: var(--navy); border-bottom-color: var(--blue); }
.lang-switch span { color: var(--border); }

.nav-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--page-bg); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.nav-icon:hover { background: var(--blue); color: #fff; }
.nav-icon svg { width: 18px; height: 18px; }

.btn-contact { display: inline-flex; align-items: center; justify-content: center; }
.btn-contact .btn-icon { display: none; width: 18px; height: 18px; }

/* ==========================================================================
   Page column
   ========================================================================== */

.page {
  max-width: 1200px; margin: 0 auto;
  background: var(--card);
}

.page-bar { height: 36px; background: var(--purple); }

section { padding: 72px 20px; }
.section-inner { max-width: 1140px; margin: 0 auto; }

.section-title {
  font-size: 32px; font-weight: 500; text-align: center;
}
.section-sub { text-align: center; color: var(--body); margin-top: 10px; }

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-top: 56px; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center;
}
.about-grid img { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
.about-text { text-align: center; }
.about-text h2 { font-size: 26px; font-weight: 500; margin-bottom: 28px; }
.about-grid .about-mark { display: none; }
.about-text p { font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.8; color: #333; }
.about-text p + p { margin-top: 20px; }

/* ==========================================================================
   Expertise (grey panel)
   ========================================================================== */

.expertise { background: var(--panel); }
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px;
}
.expertise-card { text-align: center; }
.expertise-media { position: relative; border-radius: 16px; overflow: hidden; }
.expertise-card img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.expertise-card .expertise-alt {
  position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .45s ease;
}
@media (hover: hover) {
  .expertise-card:hover .expertise-alt { opacity: 1; }
}
.expertise-card.is-swapped .expertise-alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .expertise-card .expertise-alt { transition: none; }
}
.expertise-card hr {
  width: 180px; border: 0; border-top: 2px solid var(--icon-blue); margin: 28px auto 20px;
}
.expertise-card h3 { font-size: 28px; font-weight: 500; }
.expertise-card p { font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.5; margin-top: 12px; color: #333; }

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; margin-top: 56px;
}
.service { position: relative; }
.service-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--icon-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 20px; height: 20px; fill: currentColor; }
.service h3 { font-size: 22px; font-weight: 500; margin-top: 18px; }
.service p { font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.5; margin-top: 14px; color: #333; }

/* ==========================================================================
   Call to action
   ========================================================================== */

.cta { text-align: center; padding-top: 40px; }
.cta h2 { font-family: 'Roboto', sans-serif; font-size: 52px; font-weight: 700; color: #333; }
.cta p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.cta .btn { margin-top: 48px; padding: 12px 24px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ==========================================================================
   Clients
   ========================================================================== */

.clients { padding-top: 48px; }
.clients-tagline { font-family: 'Roboto', sans-serif; font-size: 40px; font-weight: 700; color: #333; }
.clients h3 { font-size: 36px; font-weight: 500; color: var(--navy); text-align: center; margin-top: 56px; }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px;
}
.client {
  margin: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 18px 14px; text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.client:hover { box-shadow: 0 10px 30px rgba(28, 36, 75, 0.08); transform: translateY(-2px); }
.client-logo {
  height: 90px; display: flex; align-items: center; justify-content: center;
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
.client figcaption { font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.contact h2 { font-size: 30px; font-weight: 500; margin-bottom: 18px; }

.form-field { display: block; margin-top: 16px; }
.form-field .field-label { display: block; font-family: 'Poppins', sans-serif; font-size: 14px; color: #333; margin-bottom: 6px; }
.field-label .req { color: #E53935; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 11px 16px;
  border: 1px solid #777; border-radius: 100px;
  background: #fff; outline: none;
  transition: border-color .15s;
}
.form-field textarea { border-radius: 18px; resize: vertical; min-height: 110px; }
.form-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--ink);
  font-family: 'Roboto', system-ui, sans-serif; font-size: 15px; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 8px;
}
.form-field select:invalid { color: #757575; }
.form-field select option { color: var(--ink); }
.form-field[hidden] { display: none; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--purple); }
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: #D33; background: #FFF7F7; }
.field-error { display: none; color: #C0223B; font-size: 13px; margin-top: 5px; padding-left: 16px; }
.field-error.show { display: block; }

/* Honeypot: hidden for people, filled in by bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-submit {
  width: 100%; margin-top: 22px; padding: 14px;
  border-radius: 100px; font-size: 16px;
}

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; display: none; }
.form-status.error { display: block; background: #FDECEC; color: #A11B30; border: 1px solid #F5C6C6; }

.form-success { text-align: center; padding: 40px 10px; }
.form-success .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--page-bg); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
}
.form-success h3 { font-size: 24px; font-weight: 500; }
.form-success p { margin-top: 10px; max-width: 400px; margin-left: auto; margin-right: auto; }
.form-success button {
  margin-top: 24px; background: var(--page-bg); color: var(--purple);
  border: none; padding: 12px 22px; border-radius: 100px;
  font-weight: 500; font-size: 15px; cursor: pointer;
}

.contact-person { text-align: center; }
.contact-person img { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.contact-person p { font-family: 'Montserrat', 'Poppins', sans-serif; font-size: 16px; font-weight: 300; color: #000; margin-top: 24px; }
.contact-person .signature { display: block; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: #fff; color: var(--footer-text); }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 56px 32px 40px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start;
}
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { color: var(--blue); display: inline-flex; }
.footer-social a:hover { color: var(--blue-dark); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: flex; gap: 24px; margin-top: 28px; font-size: 13px; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: var(--blue); }

.footer-contact h4 { font-size: 18px; font-weight: 600; color: var(--navy); }
.footer-contact ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; }
.footer-contact li { margin-top: 10px; }
.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: var(--blue); }

.footer-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.footer-map iframe { display: block; width: 100%; height: 200px; border: 0; }

.footer-bottom {
  background: var(--blue); color: #fff; text-align: center;
  font-size: 13px; padding: 10px 20px;
}

/* ==========================================================================
   Legal pages (privacy policy, terms of service)
   ========================================================================== */

.legal { padding: 56px 20px 80px; }
.legal-inner { max-width: 900px; margin: 0 auto; }
.legal h1 { font-size: 34px; font-weight: 500; margin-bottom: 24px; }
.legal h2 { font-size: 24px; font-weight: 500; margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--border); }
.legal h3 { font-size: 18px; font-weight: 600; margin-top: 26px; }
.legal p { margin-top: 14px; font-size: 15px; line-height: 1.7; }
.legal ul { margin: 12px 0 0; padding-left: 24px; font-size: 15px; line-height: 1.7; }
.legal li { margin-top: 4px; }
.legal address { font-style: normal; margin-top: 14px; font-size: 15px; line-height: 1.7; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: -12px; margin-bottom: 20px; }

/* ==========================================================================
   404
   ========================================================================== */

.notfound { max-width: 640px; margin: 0 auto; padding: 96px 20px 120px; text-align: center; }
.notfound-code {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 56px; line-height: 1;
  color: var(--purple); background: var(--page-bg); border-radius: 22px; padding: 20px 34px;
}
.notfound h1 { font-size: 36px; font-weight: 500; margin-top: 30px; }
.notfound p { font-size: 17px; margin-top: 16px; }
.notfound .btn { margin-top: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .nav-links { gap: 20px; }
  .expertise-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-map { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  section { padding: 56px 16px; }
  .nav { padding: 10px 16px; }
  .nav-logo img { height: 40px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .btn { padding: 9px 16px; font-size: 14px; }
  .btn-contact { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .btn-contact .btn-text { display: none; }
  .btn-contact .btn-icon { display: block; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about { padding-top: 40px; }
  .about-grid .about-logo { display: none; }
  .about-grid .about-mark { display: block; width: 72px; height: auto; margin: 0 auto 14px; }
  .about-text h2 { margin-bottom: 18px; }
  .expertise-grid, .services-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .expertise-card h3 { font-size: 24px; }
  .section-title { font-size: 26px; }
  .cta h2 { font-size: 32px; }
  .clients-tagline { font-size: 28px; }
  .clients h3 { font-size: 28px; margin-top: 36px; }
  .clients-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .client { display: flex; align-items: center; gap: 16px; padding: 12px 16px; text-align: left; }
  .client-logo { width: 120px; height: 56px; flex-shrink: 0; }
  .client figcaption { flex: 1; margin-top: 0; font-size: 15px; color: var(--navy); }
  .contact-person img { width: 220px; height: 220px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 16px 32px; }
  .legal h1 { font-size: 28px; }
  .legal h2 { font-size: 21px; }
}

/* ==========================================================================
   Website development
   ========================================================================== */

.webdev { background: var(--panel); }
.webdev-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.webdev-grid img { display: block; width: 100%; height: auto; border-radius: 16px; }
.webdev-text h2 { font-size: 32px; font-weight: 500; color: var(--navy); }
.webdev-text p, .webdev-points li { font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.6; color: #333; }
.webdev-text p { margin-top: 16px; }
.webdev-points { list-style: none; margin: 20px 0 0; padding: 0; }
.webdev-points li { position: relative; padding-left: 22px; }
.webdev-points li + li { margin-top: 12px; }
.webdev-points li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--icon-blue);
}
.webdev-points strong { font-weight: 600; color: var(--ink); }
.webdev-text .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .webdev-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .webdev-text h2 { font-size: 26px; }
}
