/* MAGH Solutions. Self-hosted fonts, no external requests. */
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700.woff2") format("woff2"); }

:root {
  /* Brand colors from the logo */
  --night: #0A1F12;
  --night-2: #112B18;
  --green-1: #2ECC71;
  --green-2: #27AE60;
  --green-3: #1A8A4A;
  /* Text tones */
  --ink: #0E1A12;
  --ink-soft: #3D4A42;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C9D8CE;
  --link: #136B37;
  --paper: #F5F8F6;
  --line: #DCE5DF;
  --flag: #FFE26A;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Outfit", "DM Sans", system-ui, sans-serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-1); outline-offset: 3px; border-radius: 4px; }
.on-green :focus-visible, .btn-primary:focus-visible { outline-color: var(--night); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; }

/* Signature element: the three bars from the logo */
.bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 1em; vertical-align: -.08em; margin-right: .5em; }
.bars i { display: block; width: 5px; border-radius: 3px; background: var(--green-1); }
.bars i:nth-child(1) { height: 100%; }
.bars i:nth-child(2) { height: 72%; background: var(--green-2); }
.bars i:nth-child(3) { height: 86%; background: var(--green-3); }
.eyebrow { font: 600 .9rem/1.3 "Outfit", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 .9rem; display: flex; align-items: center; }
.on-dark .eyebrow { color: var(--green-1); }
.on-green .eyebrow { color: var(--night); }
.on-green .bars i { background: var(--night); }

/* Header */
.site-header { background: var(--night); color: var(--on-dark); border-bottom: 1px solid #1d3a26; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: block; flex: none; }
.logo img { width: 132px; height: 44px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; color: var(--on-dark-soft); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { color: #fff; background: var(--night-2); }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--green-1); border-radius: 0; }
.site-header .header-cta { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 "Outfit", sans-serif; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-1); color: var(--night); }
.btn-primary:hover { background: #46d985; }
.btn-ghost { color: #fff; border-color: #4f6b58; }
.btn-ghost:hover { border-color: var(--green-1); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sticky call button on mobile */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
body { padding-bottom: 76px; }

/* Sections */
section { padding: 64px 0; }
.on-dark { background: var(--night); color: var(--on-dark); }
.on-dark p { color: var(--on-dark-soft); }
.on-dark a:not(.btn) { color: var(--green-1); }
.on-dark .card, .on-dark .card p { color: var(--ink); }
.on-dark .card .muted, .on-dark .card .tag { color: var(--ink-soft); }
.on-green { background: var(--green-1); color: var(--night); }
.on-green a:not(.btn) { color: var(--night); }
.split { display: grid; gap: 36px; }
.lead { font-size: 1.15rem; max-width: 38em; }
.muted { color: var(--ink-soft); }

/* Hero */
.hero { padding: 40px 0 52px; }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--green-1); }
.hero .lead { color: var(--on-dark-soft); }
.hero-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .98rem; color: var(--on-dark-soft); }
.hero-facts a { color: #fff; text-decoration: none; font-weight: 500; }
.hero-facts a:hover { text-decoration: underline; }
.hero-art { display: none; }

/* Cards */
.grid { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .6rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--night); display: grid; place-items: center; margin-bottom: 16px; }
.icon img { width: 34px; height: 34px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; padding-left: 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--night); color: var(--green-1); font: 700 1.15rem/42px "Outfit", sans-serif; text-align: center; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 32px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }

/* Prices */
.price { font: 700 2rem/1.1 "Outfit", sans-serif; margin: .2em 0 .1em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan ul { padding-left: 1.1em; margin: 1em 0 0; }
.plan li { margin-bottom: .35em; }
.plan-featured { border: 2px solid var(--green-3); }
.note { font-size: .95rem; color: var(--ink-soft); }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.contact-list a, .contact-list .value { font: 600 1.3rem/1.3 "Outfit", sans-serif; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* Page header for subpages */
.page-head { padding: 44px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.page-head p { margin: 0; }

/* Legal text */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }

/* Flags (only outside the hero) */
.flag { background: var(--flag); color: #1a1a1a; padding: .05em .35em; border-radius: 4px; font-size: .95em; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-soft); padding: 48px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 28px; }
.site-footer h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-1); margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer address { font-style: normal; }
.site-footer .bottom { border-top: 1px solid #23432d; margin-top: 32px; padding-top: 18px; font-size: .9rem; }

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .logo img { width: 150px; height: 50px; }
  .main-nav { margin-left: auto; }
  .site-header .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; }
  section { padding: 88px 0; }
  .hero { padding: 84px 0 96px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
  /* Large version of the logo bars next to the hero text */
  .hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 22px; height: 300px; }
  .hero-art i { width: 54px; border-radius: 27px; background: var(--green-1); height: 100%; }
  .hero-art i:nth-child(2) { height: 75%; background: var(--green-2); }
  .hero-art i:nth-child(3) { height: 88%; background: var(--green-3); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

@media (max-width: 899px) {
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: space-between; }
  .main-nav a { padding: 6px 4px; font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
