/*
Theme Name: Arvento Premium
Description: Classic PHP theme for Arvento.dk.
Version: 1.1.1
Author: Arvento Agency
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKEN SYSTEM ──────────────────────────────────── */
:root {
  /* Core palette */
  --color-forest:      #1E4535;   
  --color-forest-mid:  #2C5E4E;   
  --color-forest-pale: #E8F2EC;   
  --color-ink:         #0D1B2A;   
  --color-ink-mid:     #3D5166;   
  --color-ink-faint:   #7A8FA0;   
  --color-cream:       #F7F4EE;   
  --color-white:       #FFFFFF;
  --color-border:      #DDE4DC;   
  --color-gold:        #C9A84C;   

  /* Theme Aliases */
  --color-bg:          var(--color-cream);
  --color-primary:     var(--color-ink);
  --color-secondary:   var(--color-forest);
  --color-accent:      var(--color-forest-pale);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13,27,42,.07);
  --shadow-sm:  0 4px 16px rgba(13,27,42,.08);
  --shadow-md:  0 12px 36px rgba(13,27,42,.12);
  --shadow-lg:  0 24px 64px rgba(13,27,42,.16);
  --shadow-form: 0 32px 80px rgba(13,27,42,.18);

  /* Transitions */
  --ease:       cubic-bezier(.16,1,.3,1);
  --ease-std:   cubic-bezier(.4,0,.2,1);
}

/* ── GLOBAL RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── ACCESSIBILITY ─────────────────────────────────── */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1; border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important; clip-path: none; color: #21759b;
	display: block; font-size: 14px; font-size: 0.875rem;
	font-weight: bold; height: auto; left: 5px; line-height: normal;
	padding: 15px 23px 14px; text-decoration: none;
	top: 5px; width: auto; z-index: 100000;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { 
  color: inherit; 
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  margin-top: 0;
}

/* ── CONTAINER ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER & FOOTER GLOBALS ───────────────────────── */
.site-header {
	background-color: var(--color-white);
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

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

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--color-ink);
    font-weight: 500;
    font-family: var(--font-body);
    transition: color 0.2s var(--ease);
}

.main-navigation a:hover {
    color: var(--color-forest);
}

.site-footer {
	background: linear-gradient(180deg, var(--color-ink) 0%, #08111B 100%);
	color: var(--color-white);
	padding: 100px 0 40px;
	margin-top: 0;
	position: relative;
}

.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2.5fr 1fr 1fr;
        gap: 80px;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #FFFFFF !important;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.footer-tagline {
    color: rgba(255,255,255,0.6) !important;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    color: #FFFFFF !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-links {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li {
    margin-bottom: 16px;
    color: rgba(255,255,255,0.6) !important;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.footer-links a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.footer-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
    background: #FFFFFF; transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-links a:hover {
    color: #FFFFFF !important;
    transform: translateX(4px);
}
.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding-top: 24px;
}
.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-bottom p {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.85rem;
    margin: 0;
}
.footer-legal-links {
    display: flex;
    gap: 24px;
}
.footer-legal-links a {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-legal-links a:hover {
    color: #FFFFFF !important;
}

.site-footer p {
    color: rgba(255,255,255,0.6) !important;
}

/* ── ACCESSIBILITY & FOCUS STATES ──────────────────── */
*:focus-visible {
    outline: 3px solid var(--color-forest);
    outline-offset: 4px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ── STICKY MOBILE CTA (CRO) ───────────────────────── */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9995;
    border-top: 1px solid var(--color-border);
}

@media screen and (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    body {
        padding-bottom: 70px; /* Prevent footer content from being hidden */
    }
}

.sticky-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sticky-btn:active {
    transform: scale(0.98);
}

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

.sticky-btn.secondary {
    background: var(--color-forest-pale);
    color: var(--color-forest);
}

/* ── ANIMATIONS & UTILITIES ────────────────────────── */
.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-image {
    border-radius: var(--radius-lg);
}

/* ── FORM 12/10 REDESIGN & FLOATING LABELS ─────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: 1 / -1;
    }
}

.form-floating-group {
    position: relative;
    width: 100%;
}

.form-floating-group .form-input {
    width: 100%;
    padding: 24px 20px 12px; /* Extra padding top for floating label */
    background: #F9FAFB;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--color-primary);
    transition: all 0.3s var(--ease);
}

.form-floating-group .form-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--color-ink-faint);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.2s var(--ease);
    margin: 0;
}

.form-floating-group textarea.form-input {
    min-height: 140px;
}
.form-floating-group textarea + .form-label {
    top: 24px;
    transform: none;
}

/* Float the label when input is focused or not empty (requires placeholder=" " in HTML) */
.form-floating-group .form-input:focus ~ .form-label,
.form-floating-group .form-input:not(:placeholder-shown) ~ .form-label {
    top: 14px;
    transform: translateY(-50%) scale(0.85);
    transform-origin: left top;
    color: var(--color-secondary);
}

.form-floating-group textarea.form-input:focus ~ .form-label,
.form-floating-group textarea.form-input:not(:placeholder-shown) ~ .form-label {
    top: 8px;
    transform: scale(0.85);
}

.form-floating-group .form-input:focus {
    background: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(30, 69, 53, 0.08);
}

/* AJAX Form States */
.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3224 100%);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 69, 53, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 35px rgba(30, 69, 53, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #0e2018 0%, var(--color-primary) 100%);
}
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.btn-submit.loading {
    opacity: 0.8;
    pointer-events: none;
}
.btn-submit.loading .btn-text {
    display: none;
}
.btn-submit.loading .btn-spinner {
    display: block !important;
}

.form-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}
.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-ink-faint);
    margin-top: 16px;
}

/* ── AVATAR STACK ─────────── */
.form-avatar-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: 24px;
}
.form-avatar-wrapper img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.form-avatar-wrapper img:nth-child(2) {
    margin-left: -24px; /* Creates the overlap */
    z-index: 1;
}
.form-avatar-wrapper img:hover {
    transform: translateY(-4px);
    z-index: 10;
}
.form-avatar-wrapper .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: #10B981;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    z-index: 20;
}

/* ── ACCESSIBILITY (a11y) ─────────── */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-primary);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--color-white);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Marquee styles */
.marquee-section {
    background-color: var(--color-white);
    padding: 36px 0;
    overflow: hidden;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
    gap: 72px;
    align-items: center;
    will-change: transform;
}

.marquee-section:hover .marquee-container {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: #9CA3AF;
    display: flex;
    align-items: center;
}

/* Client/partner logos always stay in full, vibrant color — never desaturated */
.marquee-item img {
    height: 45px !important;
    max-width: 200px !important;
    width: auto !important;
    object-fit: contain;
    filter: none;
    opacity: 0.92;
    transform: scale(1);
    transition: opacity 0.35s var(--ease, ease), transform 0.35s var(--ease, ease);
    display: block;
}

.marquee-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 36px)); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-container {
        animation: none;
    }
}