/* ============================================================
   MIMERIUM SPA — STYLESHEET
   Brand guide: #18233e | #eef3f8 | #43b69e | #07b6d3 | #ffffff
   Font: Roboto (web) per grafisk guide
   ============================================================ */

/* ----------------------------------------------------------
   CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --dark-blue:   #18233e;
  --light-bg:    #eef3f8;
  --white:       #ffffff;
  --nexo-green:  #43b69e;
  --cyan:        #07b6d3;
  --black:       #000000;

  --divider-h:   5px;          /* "as thick as the i in Mimerium logo" */
  --font:        'Roboto', Arial, sans-serif;

  --max-content:   1280px;
  --section-pad-v: clamp(80px, 10vw, 130px);
  --section-pad-h: clamp(10%, 10vw, 16%);
}

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-blue);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }



/* ----------------------------------------------------------
   DIVIDER — full width between Nexo/contact sections (green)
   ---------------------------------------------------------- */
.divider {
  width: 100%;
  height: var(--divider-h);
  background: var(--nexo-green);
  flex-shrink: 0;
}

/* Inner divider inside Section 1 — content width only */
.divider-inner {
  height: 7px;
  background: var(--dark-blue);
  opacity: .18;
  margin: 0 var(--section-pad-h);
  width: calc(100% - 2 * var(--section-pad-h));
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   SCROLL-REVEAL  (JS adds .visible)
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible            { opacity: 1; transform: none; }
.reveal.d1                 { transition-delay: 0.10s; }
.reveal.d2                 { transition-delay: 0.22s; }
.reveal.d3                 { transition-delay: 0.34s; }
.reveal.d4                 { transition-delay: 0.46s; }


/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

/* Section wrapper — same bg so divider sides don't show white */
#hero { background: var(--light-bg); }



/* ---- Area 1: Logo + Big Headline ---- */
.s1-area1 {
  background-color: var(--light-bg);
  padding: var(--section-pad-v) var(--section-pad-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* Subtle depth shadow bottom-right */
.s1-area1::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(24,35,62,.04) 0%, transparent 65%);
  pointer-events: none;
}

.s1-logo {
  width: clamp(200px, 22vw, 360px);
  margin-bottom: clamp(40px, 5vw, 94px);
}

.s1-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(24,35,62,.55);
  margin-bottom: 28px;
}

.s1-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 44px;
  height: 1px;
  background: var(--dark-blue);
  opacity: .4;
}

@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.4); }
}

.s1-headline {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--dark-blue);  
  max-width: 820px;
  margin-bottom: 28px;
}

.s1-headline em {
  font-style: normal;
  
  color: var(--cyan);
}

.s1-sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 300;
  color: #3a3f50;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 52px;
}

.s1-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
 
  background: var(--cyan);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 590px;
}

.s1-badge::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--white);
  opacity: .5;
}


/* ---- Area 2: Solution Pitch ---- */
.s1-area2 {
  background: var(--light-bg);
  padding: var(--section-pad-v) var(--section-pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* Tighten spacing around the inner divider + pull logo to top */
.s1-area1 { padding-top: clamp(20px, 2.5vw, 36px); padding-bottom: clamp(14px, 2vw, 24px); }
.s1-area2 { padding-top: clamp(14px, 2.5vw, 44px); }

.s1-a2-headline {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-blue);
}

.s1-a2-headline em {
  font-style: normal;
  color: var(--dark-blue);
}

.s1-a2-body p {
  font-size: 1.03rem;
  color: #3a3f50;
  line-height: 1.82;
}

.s1-a2-body p + p {
  margin-top: 18px;
}


/* ============================================================
   SECTION 2 — NEXO
   ============================================================ */
.s2-nexo {
  background-color: var(--dark-blue);
  padding: var(--section-pad-v) var(--section-pad-h);
  position: relative;
  overflow: hidden;
}

/* Grid overlay for hi-tech feel */
.s2-nexo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,182,158,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,182,158,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Multi-point ambient glows — hi-tech AI feel */
.s2-nexo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0%   95%, rgba(67,182,158,.55) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 85%  5%,  rgba(67,182,158,.48) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 55%, rgba(7,182,211,.40)  0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 42%  42%, rgba(67,182,158,.28) 0%, transparent 55%);
  pointer-events: none;
  animation: nexo-glow-fade 5s ease-in-out infinite;
  z-index: 0;
}

.s2-nexo > * { position: relative; z-index: 1; }

@keyframes nexo-glow-fade {
  0%,100% { opacity: 1; }
  50%     { opacity: .4; }
}

.s2-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--nexo-green);
  margin-bottom: 28px;
}

.s2-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 44px;
  height: 1px;
  background: var(--nexo-green);
}

.s2-wordmark {
  width: clamp(200px, 35vw, 480px);
  height: auto;
  margin-bottom: 10px;
  animation: nexo-breathe 4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(67,182,158,.35));
}

@keyframes nexo-breathe {
  0%,100% { text-shadow: 0 0 50px rgba(67,182,158,.25), 0 0 100px rgba(67,182,158,.1); }
  50%      { text-shadow: 0 0 80px rgba(67,182,158,.45), 0 0 160px rgba(67,182,158,.2); }
}

.s2-tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--light-bg);
  margin-bottom: 64px;
  opacity: .88;
}

.s2-hero-text {
  font-size: clamp(.97rem, 1.6vw, 1.15rem);
  color: rgba(238,243,248,.82);
  max-width: 780px;
  line-height: 1.82;
  margin-bottom: 20px;
}

.s2-hero-text strong {
  color: var(--nexo-green);
  font-weight: 500;
}

/* Full-width header box */
.s2-header-box {
  margin-bottom: 20px;
  width: 100%;
}

/* Two equal content boxes */
.s2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  margin-bottom: 70px;
}

.s2-box {}

/* "Vad är Nexo?" sub-headline */
.s2-subhead {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

/* Cards grid */
.s2-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  margin-top: 52px;
}

.s2-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(67,182,158,.18);
  border-radius: 3px;
  padding: 34px 30px;
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}

.s2-card:hover {
  border-color: rgba(67,182,158,.48);
  box-shadow: 0 0 36px rgba(67,182,158,.1);
}

.s2-card::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
  background: var(--nexo-green);
  box-shadow: 0 0 14px rgba(67,182,158,.7);
}

.s2-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.s2-card-text {
  font-size: .93rem;
  color: rgba(238,243,248,.7);
  line-height: 1.72;
}

/* Closing quote */
.s2-quote {
  margin-top: 90px;
  padding-top: 64px;
  border-top: 1px solid rgba(67,182,158,.14);
  text-align: center;
}

.s2-quote-text {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  text-shadow: 0 0 50px rgba(67,182,158,.2);
}

.s2-quote-text em {
  font-style: normal;
  color: var(--nexo-green);
}


/* ============================================================
   SECTION 3 — OM MIMERIUM & TEAMET
   ============================================================ */
.s3-about {
  background: var(--light-bg);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 44px;
  height: 1px;
  background: var(--cyan);
}

.s3-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.15;
  margin-bottom: 28px;
}

.s3-body {
  font-size: 1.03rem;
  color: #3a3f50;
  line-height: 1.82;
  max-width: 760px;
  margin-bottom: 80px;
}

/* Team */
.s3-team-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-blue);
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: var(--divider-h) solid var(--cyan);
  margin-bottom: 44px;
}

.s3-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: 3px;
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 4px 28px rgba(24,35,62,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.team-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: var(--divider-h);
  background: var(--cyan);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(24,35,62,.13);
}

.team-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: .04em;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 4px;
}

.team-role {
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.team-bio {
  font-size: .95rem;
  color: #465;
  line-height: 1.72;
  margin-bottom: 26px;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  color: var(--dark-blue);
  transition: color .2s;
}

.team-linkedin:hover { color: var(--cyan); }

.team-linkedin svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}


/* ============================================================
   SECTION 4 — KONTAKT / CTA / FOOTER
   ============================================================ */
.s4-contact {
  background-color: var(--dark-blue);
  padding: var(--section-pad-v) var(--section-pad-h) 0;
  position: relative;
  overflow: hidden;
}

.s4-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,182,158,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,182,158,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.s4-contact::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(67,182,158,.08) 0%, transparent 70%);
  pointer-events: none;
}

.s4-header {
  max-width: 660px;
  margin-bottom: 64px;
}

.s4-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--nexo-green);
  margin-bottom: 20px;
}

.s4-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 44px;
  height: 1px;
  background: var(--nexo-green);
}

.s4-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}

.s4-headline em {
  font-style: normal;
  color: var(--nexo-green);
}

.s4-sub {
  font-size: 1rem;
  color: rgba(238,243,248,.7);
  line-height: 1.75;
}

/* Two-col layout */
.s4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 110px);
  align-items: start;
}

/* Form */
.contact-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(238,243,248,.55);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(67,182,158,.2);
  border-radius: 3px;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--white);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(238,243,248,.3); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--nexo-green);
  box-shadow: 0 0 0 3px rgba(67,182,158,.12);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-select { cursor: pointer; }
.form-select option { background: var(--dark-blue); color: var(--white); }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--nexo-green);
  color: var(--dark-blue);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .1s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--cyan);
  box-shadow: 0 0 36px rgba(67,182,158,.4);
}

.btn-submit:active { transform: scale(.99); }

/* Form success */
.form-success {
  display: none;
  padding: 28px 24px;
  background: rgba(67,182,158,.1);
  border: 1px solid rgba(67,182,158,.3);
  border-radius: 3px;
  text-align: center;
}

.form-success.show { display: block; }

.form-success p {
  color: var(--nexo-green);
  font-size: 1rem;
  font-weight: 500;
}

/* Contact info side */
.contact-info { color: rgba(238,243,248,.8); }

.ci-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ci-intro {
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 40px;
  color: rgba(238,243,248,.7);
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.ci-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(67,182,158,.28);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexo-green);
}

.ci-icon svg { width: 18px; height: 18px; }

.ci-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(238,243,248,.45);
  margin-bottom: 4px;
}

.ci-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
}

.ci-value a {
  text-decoration: none;
  color: var(--white);
  transition: color .2s;
}

.ci-value a:hover { color: var(--nexo-green); }

/* Footer */
.site-footer {
  margin-top: clamp(80px, 10vw, 120px);
  padding: 36px 0 40px;
  border-top: 1px solid rgba(67,182,158,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.footer-logo { width: clamp(110px, 14vw, 150px); opacity: .65; }

.footer-copy {
  font-size: .78rem;
  color: rgba(238,243,248,.38);
}

.footer-tagline {
  font-size: .78rem;
  font-style: italic;
  color: rgba(67,182,158,.55);
}


/* ── Max content width 1280px — backgrounds bleed full, content centres ── */
.s1-area1,
.s1-area2,
.s2-nexo,
.s3-about,
.s4-contact {
  padding-left:  max(var(--section-pad-h), calc((100% - var(--max-content)) / 2));
  padding-right: max(var(--section-pad-h), calc((100% - var(--max-content)) / 2));
}

/* Also align the inner divider to the same content boundary */
.divider-inner {
  margin-left:  max(var(--section-pad-h), calc((100% - var(--max-content)) / 2));
  width: calc(100% - 2 * max(var(--section-pad-h), calc((100% - var(--max-content)) / 2)));
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- Tablet / small desktop ---- */
@media (max-width: 860px) {
  .s1-area2,
  .s2-two-col,
  .s4-grid,
  .s3-team-grid {
    grid-template-columns: 1fr;
  }

  .s4-grid { gap: 60px; }
  .s1-area2 { gap: 36px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
  .s3-team-grid { grid-template-columns: 1fr; }
  .s2-cards     { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; text-align: center; }
}
