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

:root {
  --dark:        #1b0d07;
  --dark-2:      #251208;
  --orange:      #e06535;
  --orange-dark: #c4531f;
  --cream:       #f4efe9;
  --cream-2:     #ede8e2;
  --white:       #ffffff;
  --text:        #1a1209;
  --text-muted:  #7a6963;
  --border:      #e5ddd5;
  /* legacy aliases used by admin / portal JS */
  --primary:        #1b0d07;
  --primary-light:  #251208;
  --accent:         #e06535;
  --accent-dark:    #c4531f;
  --bg:             #ffffff;
  --bg-alt:         #f4efe9;
  --card-shadow:    0 2px 16px rgba(0,0,0,0.06);
  --radius:         12px;
  --radius-lg:      20px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--cream); }
.btn-dark     { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #2d1e16; }
.btn-ghost    { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-sm   { padding: 8px 20px;  font-size: 14px; }
.btn-lg   { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== NAV ===== */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.nav-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* user dropdown */
.nav-user { position: relative; }
.user-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  overflow: hidden;
  display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.1s;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--cream); }
.user-dropdown button { color: #e53e3e; }

/* burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}
.nav-mobile a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}
.nav-mobile a:hover { color: #fff; }
.nav-mobile.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: radial-gradient(ellipse at 50% 30%, #3d1c0d 0%, #1b0d07 65%);
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  padding: 80px 24px 64px;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto 60px;
  line-height: 1.65;
}
/* Overlapping circles */
.hero-circles {
  display: flex;
  justify-content: center;
}
.hero-circle-row {
  display: flex;
  align-items: center;
}
.hero-circle {
  width: 156px; height: 156px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.hero-circle:not(:first-child) { margin-left: -32px; }
.hero-circle-link {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  display: block;
}
.hero-circle-link:hover { transform: translateY(-10px); box-shadow: 0 16px 40px rgba(0,0,0,0.55); z-index: 2; }
.hero-circle-label { display: none; }
.hero-circle-placeholder {
  width: 156px; height: 156px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: -32px;
}

/* ===== SECTION SHARED ===== */
.section { padding: 96px 0; }
.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

/* ===== SERVICES ===== */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(224,101,53,0.15);
}
.service-icon {
  width: 36px; height: 36px;
  margin-bottom: 24px;
  color: var(--text);
}
.service-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.service-title.accent { color: var(--orange); }
.service-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.service-text.accent { color: var(--orange); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step-num {
  font-size: 80px;
  font-weight: 800;
  color: rgba(26,18,9,0.08);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== PORTFOLIO ===== */
.portfolio { background: #f9f5f0; padding: 96px 0; }
.portfolio-header { text-align: center; margin-bottom: 48px; }

.portfolio-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 260px 220px;
  gap: 12px;
}
.mosaic-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--dark);
  text-decoration: none;
  display: block;
}
.mosaic-card.span-col { grid-column: span 1; grid-row: span 2; }
.mosaic-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mosaic-card:hover .mosaic-img { transform: scale(1.04); }
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,4,2,0.75) 0%, transparent 55%);
}
.mosaic-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
}
.mosaic-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.mosaic-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.mosaic-dark {
  background: var(--dark-2);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  min-height: 100%;
  border-radius: 16px;
}

/* ===== PRICING ===== */
.pricing { padding: 96px 0; background: var(--white); }
.pricing-card-wrap {
  max-width: 660px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--dark);
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
}
.pricing-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.pricing-headline {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}
.pricing-euro {
  font-size: 36px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
}
.pricing-number {
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}
.pricing-period {
  font-size: 18px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  align-self: flex-end;
  padding-bottom: 8px;
}
.pricing-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
  line-height: 1.6;
}
.pricing-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 28px;
}
.pricing-checks {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.pricing-check {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pricing-check::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact { background: var(--cream); padding: 96px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.contact-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
/* form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row-two { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,101,53,0.1);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.form-check-label input[type="checkbox"] {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
}
.form-success {
  display: none;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 48px 0 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.footer-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-legal { text-align: right; }
.footer-legal p, .footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.9;
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== PROMO POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.popup {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--orange);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  pointer-events: all;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup-close {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.popup-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.popup-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.popup-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
/* hide unused popup parts */
.popup-badge, .popup-sub, .popup-savings { display: none; }
.popup-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.popup-cta {
  display: block;
  background: #fff;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}
.popup-cta:hover { opacity: 0.88; }
.popup-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  text-align: center;
  transition: color 0.15s;
}
.popup-dismiss:hover { color: #fff; }

/* ===== AUTH MODAL ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,4,2,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  transform: translateY(16px);
  transition: transform 0.25s;
}
.auth-overlay.open .auth-modal { transform: translateY(0); }
.auth-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 18px; color: var(--text-muted);
  cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.auth-close:hover { background: var(--cream); }
.auth-logo {
  font-weight: 800; font-size: 18px;
  color: var(--text); margin-bottom: 20px;
  display: flex; align-items: center; gap: 7px;
}
.auth-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.auth-logo .dot { display: none; }
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  padding: 8px 16px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--orange); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-form-group { margin-bottom: 14px; }
.auth-form-group label {
  display: block; font-size: 13px;
  font-weight: 600; margin-bottom: 5px;
  color: var(--text);
}
.auth-form-group input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit;
  font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,101,53,0.1);
}
.auth-divider {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px; margin: 6px 0 14px;
}
.auth-error { margin-top: 10px; font-size: 13px; color: #e53e3e; display: none; }
.auth-error.show { display: block; }
.auth-success { margin-top: 10px; font-size: 13px; color: #16a34a; font-weight: 600; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 600;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* badge utilities (used by admin/portal) */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-new      { background: #fef3c7; color: #92400e; }
.badge-contacted{ background: #dbeafe; color: #1e40af; }
.badge-active   { background: #dcfce7; color: #15803d; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid   { grid-template-columns: 1fr; gap: 12px; }
  .steps-grid      { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-mosaic{ grid-template-columns: 1fr; grid-template-rows: auto; }
  .mosaic-card.span-col { grid-row: span 1; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-legal    { text-align: left; }
}
@media (max-width: 768px) {
  .nav-links       { display: none; }
  .nav-burger      { display: flex; }
  .lang-toggle     { display: none; }
  .section         { padding: 64px 0; }
  .hero-inner      { padding: 60px 16px 40px; }
  .hero-circle, .hero-circle-placeholder { width: 110px; height: 110px; font-size: 11px; }
  .pricing-card    { padding: 40px 24px; }
  .pricing-number  { font-size: 60px; }
  .pricing-checks  { gap: 16px; flex-direction: column; align-items: center; }
  .popup           { max-width: calc(100vw - 48px); }
  .container       { padding: 0 16px; }
}
