/* arithmetic.group — hand-authored site stylesheet.
   Values sourced from the computed styles of the prior WordPress/Elementor
   render so the rebuild stays visually identical. Mobile-first. */

:root {
  --ink: #2b2b2b;
  --accent: #f28500;
  --paper: #fff;
  --gray-heading: #54595f;
  --form-text: #373a3c;
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --container: 1170px;
  --gutter: 15px;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/poppins-400.woff2) format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/poppins-600.woff2) format("woff2");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.684;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 120px; height: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(280px, 80vw);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  background: var(--paper);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
  padding: 80px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 8px 0;
}
body.is-menu-open .site-nav { transform: translateX(0); }
body.is-menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.is-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  padding: 12px 24px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #14171c url(/assets/img/hero-globe.png) center center / cover no-repeat;
  background-image: image-set(url(/assets/img/hero-globe.webp) type("image/webp"), url(/assets/img/hero-globe.png) type("image/png"));
  color: #fff;
  text-align: center;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 615px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero .container { position: relative; }
.hero h1 {
  margin: 0 auto 24px;
  max-width: 860px;
  font-weight: 600;
  font-size: clamp(35px, 6vw, 70px);
  line-height: 1;
  color: var(--accent);
}

/* ---------- Features (home) ---------- */
.features { padding: 64px 0; }
.features-grid {
  display: grid;
  gap: 40px;
  text-align: center;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-bottom: 23px;
}
.feature-icon svg { width: 28px; height: 28px; fill: currentColor; }
.feature-title {
  margin: 0 0 13px;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.2;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.684;
}

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 8px; }
.copyright {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

/* ---------- Scroll-to-top ---------- */
#scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  z-index: 40;
}
#scroll-to-top.show { display: flex; }
#scroll-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Contact page ---------- */
.page-title { padding: 40px 0 0; }
.page-title h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(35px, 6vw, 70px);
  line-height: 1;
  color: var(--gray-heading);
}
.cards {
  position: relative;
  background: #14171c url(/assets/img/hero-globe.png) center center / cover no-repeat;
  background-image: image-set(url(/assets/img/hero-globe.webp) type("image/webp"), url(/assets/img/hero-globe.png) type("image/png"));
  padding: 30px 0 40px;
  margin-top: 24px;
}
.cards-grid {
  position: relative;
  display: grid;
  gap: 20px;
}
.card {
  background: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  padding: 40px 24px;
  text-align: center;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-bottom: 23px;
}
.card-icon svg { width: 28px; height: 28px; fill: currentColor; }
.card-title { margin: 0 0 13px; font-weight: 600; font-size: 25px; line-height: 1.2; }
.card p, .card address {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.684;
  font-style: normal;
}
.card a { color: inherit; text-decoration: none; }

.contact-form-section {
  background: var(--accent);
  color: #fff;
  padding: 40px 0 60px;
}
.contact-form-section h2 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1;
}
.field { margin-bottom: 8px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.3; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--form-text);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 9px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
button.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 24px;
  border: 1px solid #fff;
  cursor: pointer;
}
#arith-form-msg { margin-top: 14px; font-size: 15px; }
.cf-turnstile { margin: 14px 0; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .header-inner { min-height: 123px; }
  .site-logo img { width: 350px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    width: auto;
    transform: none;
    flex-direction: row;
    gap: 28px;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .site-nav a { font-size: 15px; }

  .hero { display: block; padding: 221px 0 0; min-height: 720px; }
  .features { padding: 80px 0 212px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .feature p { font-size: 13.5px; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .page-title h1, .contact-form-section h2 { text-align: left; }
  .page-title { padding-top: 100px; }
  .cards { padding: 160px 0 174px; margin-top: 40px; }
  .contact-form-section { padding: 56px 0 118px; }
}
