/* Happyrosterrankt Stylesheet - Aesthetic: Clean White & Glassmorphism | Card: Border Accent */

:root {
  --bg-base: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(15, 23, 42, 0.1);
  --accent-primary: #059669;
  --accent-secondary: #9333ea;
  --accent-purple: #7e22ce;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;
  --danger: #dc2626;
  --success: #059669;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 8px 30px rgba(5, 150, 105, 0.12);
  --shadow-elevation: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --backdrop-blur: blur(14px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  background-color: transparent;
}

/* Typography & Flow */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 16px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }

p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

p.lead {
  font-size: 1.25rem;
  color: #334155;
  max-width: 760px;
  margin-bottom: 24px;
  line-height: 1.65;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #047857;
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.brand-title {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.grid {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Header & Navigation (White theme, desktop 56-64px, mobile 48-52px) */
.site-header {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-main);
  text-decoration: none;
}

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: var(--text-main);
  text-decoration: none;
  border-color: var(--accent-primary);
}

.btn-compact {
  padding: 6px 14px;
  font-size: 0.88rem;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 24px;
  flex-direction: column;
}

.mobile-nav-overlay.is-visible {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* CARD STYLE: Border Accent on White */
.border-accent-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid #e2e8f0;
}

.border-accent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.border-accent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1), 0 0 20px rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
}

/* Row Style Cards Stacked One After Another */
.cards-row-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.border-accent-card.card-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
}

.border-accent-card.card-row::before {
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.card-row-body {
  flex: 1;
  min-width: 0;
}

.card-row-body .card-title {
  margin-bottom: 8px;
}

.card-row-body .card-desc {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-row-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: rgba(5, 150, 105, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.card-desc {
  flex-grow: 1;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
}

/* Stats / Metrics */
.stat-metric-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent-primary);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Content Page Layout */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 48px;
  background: rgba(248, 250, 252, 0.8);
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.article-content h3 {
  margin-top: 32px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-callout {
  background: rgba(5, 150, 105, 0.06);
  border-left: 4px solid var(--accent-primary);
  padding: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-left-width: 4px;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 580px;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-muted);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 6px;
}

.form-error-msg.is-visible {
  display: block;
}

.form-status {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

/* Static Map Block */
.static-map-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent-primary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-elevation);
}

.map-svg-canvas {
  width: 100%;
  height: 240px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Footer (White theme styling) */
.site-footer {
  margin-top: auto;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 64px 0 32px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 360px;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
}

.company-credentials {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--accent-primary);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text strong {
  color: var(--text-main);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  
  .nav-desktop, .header-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-section {
    padding: 48px 0;
  }

  /* Row Cards collapse neatly on mobile */
  .border-accent-card.card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .border-accent-card.card-row::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  }

  .card-row-footer {
    width: 100%;
  }

  .card-row-footer .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 399px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}