/* ==========================================================================
   ALEA GROUP AG — site styles
   Rebuilt from the live site (www.aleagroup.ltd) after loss of source.

   Typography note: the original used the licensed Wix webfonts
   "Brandon Grotesque" (headings) and "Avenir LT" (body). Those cannot be
   self-hosted without a licence, so each stack lists the real face first and
   falls back to the closest free equivalent (Jost / Nunito Sans). If you
   licence the originals, drop them in assets/fonts and the stacks pick
   them up with no other change.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  --green:        #006039;   /* brand green: header, footer, headings */
  --green-dark:   #004c2d;
  --nav-active:   #8cbcdb;   /* current-page nav link */
  --ink:          #000000;
  --ink-soft:     #2f2f2f;
  --paper:        #ffffff;
  --paper-alt:    #f8f8f8;   /* newsletter strip, contact sidebar */
  --rule:         #d8d8d8;

  --font-head: 'Brandon Grotesque', 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
  --font-body: 'Avenir LT', 'Avenir Next', 'Avenir', 'Nunito Sans', 'Segoe UI', sans-serif;

  --shell:      1200px;      /* Wix content column */
  --header-h:   96px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; }
/* The original sets Brandon Grotesque *Light* on display headings, so they read
   airy even where Wix declared weight 700. Fallback faces have a true 700, so
   headings are kept at 400 here and only the genuinely-heavy pieces (which used
   Avenir Heavy) are pushed back up to 700 further down. */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1.2em; }
ul { margin: 0 0 1.2em; padding-left: 1.25em; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; color: var(--green); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  min-height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 254px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; color: #fff;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: 16px; line-height: 1.4;
  padding: 6px 0; display: inline-block; transition: color .2s ease;
}
.site-nav a:hover { color: var(--nav-active); }
.site-nav a[aria-current="page"] { color: var(--nav-active); }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper-alt); }

/* A full-bleed photo band with a white content card floating on top —
   the layout the original uses for the hero and the welcome block. */
.band {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 24px;
}
.band__card {
  background: #fff;
  max-width: 980px; width: 100%;
  padding: 56px 64px;
  text-align: center;
}
.band--hero { min-height: 760px; }
.band--hero .band__card { max-width: 980px; padding: 64px; }
.band--welcome { min-height: 900px; }
.band--welcome .band__card { max-width: 700px; padding: 56px 48px; }

.hero-title { font-size: 39px; color: var(--ink); margin-bottom: .5em; letter-spacing: .01em; }
.hero-sub   { font-size: 34px; color: var(--green); font-family: var(--font-head); font-weight: 400; margin: 0; }

.display { font-size: 56px; color: var(--green); margin-bottom: .55em; letter-spacing: .01em; }
.page-title { font-size: 56px; color: var(--green); text-align: center; }

/* three-up copy columns (SOLUTIONS / CLIENTS / PROJECTS) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; text-align: center; }
.trio h2 { font-size: 40px; color: var(--green); margin-bottom: .8em; letter-spacing: .02em; }
.trio p  { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 16px; line-height: 1;
  padding: 18px 44px; border: 1px solid var(--green); background: transparent;
  color: var(--green); transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--green); color: #fff; }
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-dark); }
.btn--black { background: #000; color: #fff; border-color: #000; width: 100%; padding: 20px; }
.btn--black:hover { background: #222; border-color: #222; color: #fff; }
.btn--wide { min-width: 420px; text-align: center; }

.center { text-align: center; }
.stack-cta { margin-top: 56px; text-align: center; }

/* ==========================================================================
   Solutions — 2-column icon cards
   ========================================================================== */
.solutions-hero img { width: 100%; height: 446px; object-fit: cover; }

.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 96px; }
.card-sol { display: grid; grid-template-columns: 49px 1fr; gap: 24px; align-items: start; }
.card-sol img { width: 49px; height: 49px; object-fit: contain; }
.card-sol h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 20px; color: var(--green); margin-bottom: .35em;
}
.card-sol p { margin-bottom: .4em; }
.card-sol ul { padding-left: 1.15em; margin: 0; }
.card-sol li { line-height: 1.7; }

/* ==========================================================================
   About
   ========================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split__media img { width: 100%; height: 620px; object-fit: cover; }
.split h2 { font-size: 40px; color: var(--green); margin-bottom: .7em; }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.badge img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 20px; }
.badge h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--green); }

.info-table { max-width: 640px; margin: 0 auto; }
.info-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.info-row dt { font-weight: 700; color: var(--green); margin: 0; }
.info-row dd { margin: 0; }

.note {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-size: 15px; line-height: 1.9; color: var(--ink-soft);
}

/* ==========================================================================
   Work / Industries — project grid
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 48px; }
.work-card img { width: 100%; height: 420px; object-fit: cover; }
.work-card h3 { font-size: 30px; color: var(--green); margin: 28px 0 .5em; }

/* ==========================================================================
   Services — bookable list
   ========================================================================== */
.service-list { display: flex; flex-direction: column; gap: 0; }
.service-row {
  display: grid; grid-template-columns: 260px 1fr auto;
  gap: 40px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--rule);
}
.service-row:first-child { border-top: 1px solid var(--rule); }
.service-row img { width: 260px; height: 170px; object-fit: cover; }
.service-row h3 { font-size: 26px; color: var(--green); margin-bottom: .35em; letter-spacing: .02em; }
.service-meta { color: var(--ink-soft); font-size: 15px; }
.service-meta span + span::before { content: '·'; margin: 0 10px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 350px 1fr 350px; min-height: 620px; }
.contact-info { background: var(--paper-alt); padding: 56px 40px; }
.contact-info h3 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: .5em; }
.contact-info p { line-height: 1.7; }
.contact-info > div + div { margin-top: 40px; }
.contact-form-wrap { background: var(--paper-alt); padding: 56px 48px; }
.contact-media { background-size: cover; background-position: center; }

/* ---------- forms ---------- */
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 15px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 12px; background: #fff;
  border: 1px solid #000; border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-actions { display: flex; justify-content: flex-end; }
.form-actions .btn { background: #000; color: #fff; border-color: #000; min-width: 170px; text-align: center; }
.form-actions .btn:hover { background: #222; }
.form-status { margin-top: 16px; color: var(--green); font-weight: 700; }
.form-status[hidden] { display: none; }

/* ==========================================================================
   Newsletter strip (home only)
   ========================================================================== */
.newsletter { background: var(--paper-alt); padding: 72px 0 80px; }
.newsletter h2 {
  font-size: 46px; color: var(--green); text-align: center; margin-bottom: 1em;
  font-weight: 700;   /* original used a heavy face here, unlike the display headings */
}
.newsletter form { max-width: 1075px; margin: 0 auto; }
.newsletter .field label { font-size: 15px; }
.newsletter .field input {
  border: 0; border-bottom: 1px solid #000; background: transparent; padding: 10px 2px;
}
.newsletter .fineprint {
  text-align: center; margin: 26px 0 0; font-size: 15px;
  font-family: Georgia, 'Times New Roman', serif;
}
.newsletter .fineprint a { color: inherit; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green); color: #fff; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h2, .site-footer h3 {
  font-size: 24px; font-weight: 400; letter-spacing: .04em; margin-bottom: 1em; color: #fff;
}
.site-footer p { line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--nav-active); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--nav-active); }
.sofit-link { text-decoration: underline !important; display: inline-block; margin-top: 18px; }
.footer-legal-note {
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 56px; padding: 22px 0 28px;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.85);
}

/* ==========================================================================
   MiCA disclaimer gate
   ========================================================================== */
.mica-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.mica-backdrop[hidden] { display: none; }
.mica {
  background: #fff; border-radius: 14px; max-width: 1400px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 44px 48px 32px; text-align: center;
}
.mica h2 { font-family: var(--font-body); font-size: 20px; font-weight: 700; margin-bottom: 1.4em; }
.mica p { font-size: 14px; line-height: 1.6; margin-bottom: 1.2em; }
.mica .btn {
  background: #2b2b2b; color: #fff; border-color: #2b2b2b;
  border-radius: 8px; padding: 12px 30px; font-size: 14px; margin-top: 14px;
}
.mica .btn:hover { background: #111; border-color: #111; }

/* ==========================================================================
   Legal / long-form pages
   ========================================================================== */
.legal { max-width: 900px; margin: 0 auto; }
.legal h1 { font-size: 56px; color: var(--green); text-align: center; margin-bottom: .6em; }
.legal h2 {
  font-size: 30px; color: var(--green);
  margin: 1.8em 0 .6em; line-height: 1.3;
}
.legal h3 {
  font-family: var(--font-body); font-size: 19px; font-weight: 700;
  margin: 1.5em 0 .5em;
}
.legal .legal-org { font-size: 32px; text-align: center; color: var(--ink); margin-bottom: .4em; }
.legal .legal-updated { text-align: center; color: var(--ink-soft); margin-bottom: 3em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1.4em 0 2em; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--rule); vertical-align: top; }
.legal-table th { background: var(--paper-alt); color: var(--green); font-weight: 700; }
.legal-table-wrap { overflow-x: auto; }

.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--green); }

/* ==========================================================================
   Scroll reveal (matches the original's fade-up on scroll)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 300px 1fr; }
  .contact-media { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { width: 200px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green); display: none; padding: 8px 0 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,.14); }
  .site-nav a { display: block; padding: 16px 24px; }

  .section { padding: 56px 0; }
  .band { padding: 64px 20px; }
  .band--hero { min-height: 520px; }
  .band--welcome { min-height: 0; }
  .band__card, .band--hero .band__card { padding: 40px 26px; }

  .hero-title { font-size: 30px; }
  .hero-sub   { font-size: 24px; }
  .display, .page-title, .legal h1 { font-size: 38px; }
  .newsletter h2 { font-size: 32px; }

  .trio { grid-template-columns: 1fr; gap: 48px; }
  .cards2 { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media img { height: 340px; }
  .badges { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-card img { height: 260px; }

  .service-row { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .service-row img { width: 100%; height: 200px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 40px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
  .btn--wide { min-width: 0; width: 100%; }
  .mica { padding: 32px 22px 24px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
}
