/* =========================================================
   Amiridis Solutions – site.css
   Koncept: stillhet och precision. Varmt offwhite, en accentfärg
   (blå från logotypen), stor och tät typografi, generöst med luft.
   ========================================================= */

:root {
  --bg: #fbfbf9;
  --surface: #f3f3ef;
  --surface-2: #ebebe6;
  --ink: #111417;
  --ink-2: #3c4148;
  --muted: #6e737b;
  --line: #e4e4df;
  --accent: #2456e8;
  --accent-ink: #1a44c2;
  --accent-soft: #e9efff;
  --dark: #0f1214;
  --dark-2: #171b1f;
  --dark-line: #2a3037;
  --whatsapp: #1b8a4c;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 1px 2px rgba(17,20,23,.04), 0 12px 32px -12px rgba(17,20,23,.14);
  --shadow-lg: 0 2px 4px rgba(17,20,23,.05), 0 40px 80px -24px rgba(17,20,23,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 76px); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.muted { color: var(--muted); }
p { color: var(--ink-2); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.intro { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.intro small { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }

.wrap { width: min(1200px, 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 140px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 22px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }

/* ---------- Knappar ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; border: 1px solid var(--ink);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(36,86,232,.6); }
.button.ghost { background: transparent; color: var(--ink); border-color: #cfd0cb; }
.button.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.button.full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding-inline: clamp(20px, 5vw, 64px);
  background: rgba(251,251,249,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.brand img { width: 128px; height: auto; }
.header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.header nav a { position: relative; padding: 6px 0; transition: color .2s; }
.header nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.header nav a:not(.nav-cta):hover { color: var(--ink); }
.header nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--ink); color: #fff; padding: 10px 18px !important; border-radius: 999px; font-weight: 600; transition: background .25s; }
.nav-cta:hover { background: var(--accent); }
.menu { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 500; }
.menu-icon { width: 20px; height: 12px; position: relative; display: block; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon i:first-child { top: 0; } .menu-icon i:last-child { top: 10px; }
.menu[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 520px; margin-bottom: 36px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(36,86,232,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(36,86,232,.45); } 70% { box-shadow: 0 0 0 10px rgba(36,86,232,0); } 100% { box-shadow: 0 0 0 0 rgba(36,86,232,0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.hero-facts span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; min-width: 0; padding: 20px 0 40px; }
.glow { position: absolute; inset: -10% -20% -10% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 60% 45%, rgba(36,86,232,.16), rgba(36,86,232,0) 70%); }
.laptop { position: relative; z-index: 1; width: 100%; max-width: 640px; margin-left: auto; }
.laptop-screen {
  background: #0d0f12; border-radius: 16px 16px 6px 6px; padding: 12px 12px 14px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.laptop-screen .screen-slides { aspect-ratio: 1200 / 833; border-radius: 6px; overflow: hidden; background: #fff; }
.laptop-base { height: 14px; margin: 0 -4%; background: linear-gradient(#e2e3df, #c9cac4); border-radius: 0 0 12px 12px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #b2b3ad; border-radius: 0 0 6px 6px; }
.phone {
  position: absolute; z-index: 2; right: -2%; bottom: 0; width: 26%; max-width: 190px; min-width: 120px;
  background: #0d0f12; border-radius: 26px; padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(-4deg);
}
.phone-screen .screen-slides { aspect-ratio: 600 / 1231; border-radius: 18px; overflow: hidden; background: #fff; }
.screen-slides { position: relative; }
.screen-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.2s var(--ease); }
.screen-slides img.is-active { opacity: 1; }

/* ---------- Varför ---------- */
.why { background: var(--bg); border-top: 1px solid var(--line); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 34px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7d8d2; }
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 26px; }
.benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin-bottom: 10px; }
.benefit p { font-size: 15px; color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 1px solid #d5d6d0; background: transparent; color: var(--ink-2); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { opacity: .6; font-weight: 400; margin-left: 2px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.project { min-width: 0; }
.project.is-hidden { display: none; }
.project-media {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-media img { width: 100%; aspect-ratio: 1200 / 833; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.project-media:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media:hover img { transform: scale(1.025); }
.open-label {
  position: absolute; left: 16px; bottom: 16px; background: rgba(17,20,23,.86); color: #fff; backdrop-filter: blur(6px);
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.project-media:hover .open-label, .project-media:focus-visible .open-label { opacity: 1; transform: none; }
.project-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 4px 0; }
.project-caption .eyebrow { font-size: 11px; margin-bottom: 8px; }
.project-caption h3 { font-size: 22px; margin-bottom: 6px; }
.project-caption p:last-child { font-size: 15px; color: var(--muted); }
.arrow-link {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d5d6d0; display: grid; place-items: center;
  font-size: 18px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.arrow-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translate(2px, -2px); }
.empty-note { margin-top: 24px; color: var(--muted); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding: 36px 0 0; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--accent); }
.step-num { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-bottom: 22px; }
.steps h3 { font-size: 24px; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; max-width: 340px; }

/* ---------- Priser ---------- */
.pricing { background: var(--dark); color: #fff; }
.pricing .eyebrow { color: #9aa3ad; }
.pricing h2 .muted { color: #8b949e; }
.pricing .intro { color: #b4bcc5; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-card {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s;
}
.price-card:hover { transform: translateY(-4px); border-color: #3b434c; }
.price-card h3 { font-size: 26px; margin: 4px 0 24px; }
.price { font-size: 20px; color: #c3cad2; display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.price-note { font-size: 13px; color: #8b949e; margin: 12px 0 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 15px; color: #d6dce2; line-height: 1.5; }
.checklist li::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%232456e8'/%3E%3Cpath d='M5.5 9.3l2.3 2.3 4.7-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.price-card .button { margin-top: auto; }
.price-card .button.ghost { color: #fff; border-color: #3b434c; }
.price-card .button.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.featured { background: #fff; color: var(--ink); border-color: #fff; }
.featured .eyebrow { color: var(--accent); }
.featured .price { color: var(--muted); }
.featured .price .amount { color: var(--ink); }
.featured .price-note { color: var(--muted); }
.featured .checklist li { color: var(--ink-2); }
.annual { padding: 18px 0; margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.annual strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.annual span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.scope { margin-top: 28px; max-width: 820px; color: #b4bcc5; font-size: 15px; }
.scope summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: #fff; list-style: none; display: flex; align-items: center; gap: 10px; }
.scope summary::-webkit-details-marker { display: none; }
.scope summary::before { content: "+"; width: 24px; height: 24px; border: 1px solid var(--dark-line); border-radius: 50%; display: grid; place-items: center; font-size: 15px; transition: transform .3s var(--ease); }
.scope[open] summary::before { transform: rotate(45deg); }
.scope p { color: #b4bcc5; margin: 8px 0 12px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-copy h2 { margin-bottom: 22px; font-size: clamp(34px, 3.8vw, 52px); }
.contact-copy .intro { margin-bottom: 36px; }
.contact-person { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.contact-person strong { display: block; font-weight: 600; }
.contact-person div > span { display: block; font-size: 13px; color: var(--muted); }
.contact-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-links a:hover { border-bottom-color: currentColor; }
.contact-links .whatsapp { color: var(--whatsapp); }
.contact-links .whatsapp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.contact-form label > span { color: var(--muted); font-weight: 400; }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; font-size: 16px; font-weight: 400;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(36,86,232,.15); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .is-invalid { border-color: #d13b3b !important; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: 14px; margin-top: 14px; min-height: 1.2em; font-weight: 500; }
.form-status.ok { color: #1b7a3f; } .form-status.err { color: #c12f2f; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer .brand img { width: 118px; }
.footer nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.footer nav a:hover, .footer p a:hover { color: var(--accent); }
.footer p { font-size: 13px; color: var(--muted); }

/* ---------- Reveal-animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin-top: 8px; padding-bottom: 48px; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .price-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header { height: 68px; }
  .menu { display: inline-flex; }
  .header nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(20px, 5vw, 64px) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 17px;
  }
  .header nav.open { display: flex; }
  .header nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header nav a::after { display: none; }
  .header nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { padding-top: 40px; }
  .hero-facts { gap: 20px 28px; }
  .projects { grid-template-columns: 1fr; gap: 36px; }
  .benefits { grid-template-columns: 1fr; gap: 14px; }
  .benefit { padding: 26px 24px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .price-card { padding: 28px 24px; }
  .phone { right: 0; width: 30%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .screen-slides img:not(.is-active) { display: none; }
}
