/* ===================================================================
   Akretio.be - Main Stylesheet (2025 Redesign - v4e Complete)
   Mobile-first responsive layout, bold design with animations
   =================================================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark-teal: #1a2825;
  --dark-teal-card: #1f322e;
  --green: #6aad3d;
  --green-light: #7cc24a;
  --green-dark: #5a9433;
  --teal-accent: #3fa3a2;
  --gold: #c49a6c;
  --white: #ffffff;
  --off-white: #f5f7f6;
  --warm-gray: #f0f2f1;
  --gray-light: #e8ebe9;
  --gray: #888;
  --text: #2c2c2c;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--green-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Frosted Glass Nav ===== */
#topheader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,40,37,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#topheader.nav-solid {
  background: var(--dark-teal);
}

#topheader .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.toplogo {
  flex-shrink: 0;
}

.toplogo svg,
.toplogo img {
  height: 46px;
  width: auto;
}

.toplogo a {
  display: flex;
  align-items: center;
}

#menu {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: auto;
  width: auto;
  float: none;
}

#menu .xmenuboxlev0 {
  display: flex;
  gap: 4px;
  align-items: center;
}

#menu a {
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 3px;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  text-decoration: none;
  display: inline-block;
  float: none;
  width: auto;
  height: auto;
  text-align: center;
  border-top: none;
}

#menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

#menu a:hover {
  color: var(--white);
  background: none;
  border-top: none;
  padding-top: 8px;
}

#menu a:hover::after {
  transform: scaleX(1);
}

/* ===== Hamburger Button (hidden on desktop) ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

div.lang {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  float: none;
  margin-top: 0;
}

div.lang a {
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 3px;
  transition: all 0.2s;
  background: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

div.lang a.langactive {
  background: var(--green);
  border-color: var(--green);
  color: var(--white) !important;
}

div.lang a:hover:not(.langactive) {
  border-color: rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9) !important;
}

/* ===== Hero: Split Layout ===== */
#topimagecontainer {
  background-color: var(--dark-teal);
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 600px;
}

#topimage {
  flex: 1;
  background: url("../images/theme/v2/background.jpg") center/cover no-repeat;
  position: relative;
  margin: 0;
  width: auto;
  height: auto;
  opacity: 1;
}

.hero-left {
  flex: 1;
  background: var(--dark-teal);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 60px 80px 24px;
  position: relative;
  z-index: 2;
}

.hero-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: var(--dark-teal);
  transform: skewX(-4deg);
  z-index: 1;
}

.hero-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

/* Hero entrance keyframes */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero-content h1 span {
  color: var(--gold);
  display: block;
  margin-top: 8px;
}

.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-content .btn {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.8s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,173,61,0.4);
}

/* ===== Main Body / Sections ===== */
.mainbody {
  width: 100%;
  margin: 0;
  border: 0;
  overflow: visible;
  min-height: auto;
}

#mainarea {
  width: 100%;
  margin: 0;
}

#mainareatitle {
  display: none;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--dark-teal);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Expertise Section ===== */
.expertise-section {
  background: var(--warm-gray);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.expertise-card {
  background: var(--dark-teal-card);
  border-radius: 3px;
  padding: 40px 32px;
  border: none;
  border-top: 6px solid var(--green);
  transition: transform 0.2s, box-shadow 0.2s;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.expertise-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.expertise-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.expertise-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== References: Dark Grid Cards ===== */
.references-section {
  background: var(--dark-teal);
  padding: 100px 0;
}

.references-section .section-title {
  color: var(--white);
}

.references-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.reference-card {
  grid-column: span 2;
  background: var(--dark-teal-card);
  border-radius: 3px;
  padding: 36px 32px;
  border-top: 4px solid var(--green);
  transition: transform 0.2s, box-shadow 0.2s;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Center last 2 cards */
.reference-card:nth-child(4) {
  grid-column: 2 / 4;
}

.reference-card:nth-child(5) {
  grid-column: 4 / 6;
}

.ref-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.reference-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.reference-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ref-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ref-link:hover {
  color: var(--green-light);
}

/* ===== Company Section ===== */
.company-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.company-accent {
  flex: 0 0 80px;
  background: var(--green);
  position: relative;
}

.company-accent::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 20px;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.4);
}

.company-accent::before {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 20px;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.4);
}

.company-card {
  background: var(--white);
  padding: 56px;
  border: 1px solid var(--gray-light);
  border-left: none;
  border-radius: 0 3px 3px 0;
  flex: 1;
  max-width: 700px;
}

.company-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark-teal);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.company-info {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 24px;
  font-size: 0.95rem;
}

.company-info dt {
  font-weight: 800;
  color: var(--dark-teal);
}

.company-info dd {
  color: #555;
}

.company-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 2px solid var(--gray-light);
  margin: 10px 0;
}

/* ===== Contact Form: Dark Background + Floating Labels ===== */
.contact-section {
  background: var(--dark-teal);
  padding: 100px 0;
}

.contact-section .section-title {
  color: var(--white);
}

.contact-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: all 0.25s ease;
  transform-origin: left top;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 20px 18px 10px;
  border: 2px solid rgba(106,173,61,0.4);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* Float label up on focus or when filled */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input::placeholder,
textarea::placeholder {
  color: transparent;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(106,173,61,0.2);
  background: rgba(255,255,255,0.08);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input[type="submit"] {
  display: inline-block;
  padding: 18px 56px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input[type="submit"]:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,173,61,0.4);
}

.form-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
#outro {
  background: var(--dark-teal);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  align-items: center;
  height: auto;
  width: 100%;
}

#outro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal-accent));
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  letter-spacing: 0.15em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#outrocontent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
}

#outro a {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  font-size: inherit;
  text-decoration: none;
}

#outro a:hover {
  color: var(--white);
}

#outroright {
  float: none;
  display: flex;
  gap: 24px;
}

/* ===== News panel (hidden) ===== */
#news {
  display: none;
}

/* ===== Old panel name for main content ===== */
#main {
  width: 100%;
  min-height: auto;
  overflow: visible;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-card { grid-column: span 1 !important; }
  .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  #topheader {
    height: auto;
    min-height: var(--nav-height);
  }

  #topheader .container {
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    padding: 0 20px;
    min-height: var(--nav-height);
  }

  /* Smaller logo on mobile */
  .toplogo svg {
    height: 36px;
  }

  /* Show hamburger on mobile, push to far right */
  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  /* Logo stays first */
  .toplogo {
    order: 1;
  }

  /* Hamburger animation to X when open */
  #topheader.nav-open .nav-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #topheader.nav-open .nav-toggle span:first-child + span {
    opacity: 0;
  }
  #topheader.nav-open .nav-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hide menu by default, full-width dropdown when open */
  #menu {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0 4px;
  }

  #topheader.nav-open #menu {
    display: block;
  }

  /* Kelare wraps links in .xmenuboxlev0 - make it a vertical list */
  #menu .xmenuboxlev0 {
    display: flex;
    flex-direction: column;
  }

  #menu a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  #menu a:last-child {
    border-bottom: none;
  }

  #menu a::after { display: none; }

  /* Move lang switcher into the dropdown menu */
  div.lang {
    display: none;
    order: 4;
    width: 100%;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  #topheader.nav-open div.lang {
    display: flex;
  }

  /* Hero stacks vertically */
  #topimagecontainer {
    flex-direction: column;
    min-height: auto;
  }

  .hero-left {
    padding: 60px 24px;
    justify-content: flex-start;
  }

  .hero-left::after { display: none; }

  #topimage {
    min-height: 280px;
  }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .expertise-grid { grid-template-columns: 1fr; }

  .reference-grid { grid-template-columns: 1fr; }
  .reference-card { grid-column: span 1 !important; }

  .section { padding: 64px 0; }
  .section-title { font-size: 2.1rem; }

  .company-layout { flex-direction: column; }
  .company-accent {
    flex: none;
    height: 12px;
    width: 100%;
  }
  .company-accent::after,
  .company-accent::before { display: none; }
  .company-card {
    border-left: 1px solid var(--gray-light);
    border-top: none;
    border-radius: 0 0 3px 3px;
    padding: 32px 24px;
  }
  .company-info { grid-template-columns: 1fr; }
  .company-info dt { margin-top: 8px; }

  .contact-section { padding: 64px 0; }
  .references-section { padding: 64px 0; }

  #outrocontent {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  #outroright {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-watermark { font-size: 4rem; }
}

@media (max-width: 480px) {
  #topheader .container { padding: 0 16px; }
  .toplogo svg { height: 30px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-left { padding: 48px 16px; }
  #topimage { min-height: 200px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.8rem; }
  .expertise-card { padding: 28px 20px; }
  .reference-card { padding: 28px 20px; }
}
