/* ========================================
ElkoDesign.nl
Modern Responsive Design System
======================================== */

/* ========================================
CSS Variables
======================================== */

:root {
--active: #e9660e;
--active-hover: #d35400;

--primary: #0ea5e9;
--primary-hover: #0284c7;

--bg: #f8fafc;
--bg-alt: #ffffff;

--text: #0f172a;
--text-light: #475569;

--border: #e2e8f0;

--shadow:
0 10px 30px rgba(0, 0, 0, 0.08);

--radius: 16px;

--header-height: 80px;

--transition: 0.3s ease;
}

/* Dark Theme */

[data-theme="dark"] {
--bg: #0f172a;
--bg-alt: #1e293b;

--text: #f8fafc;
--text-light: #cbd5e1;

--border: #334155;

--shadow:
0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ========================================
Reset
======================================== */

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;

font-family:
"Inter",
system-ui,
sans-serif;

background: var(--bg);

color: var(--text);

line-height: 1.7;

transition:
background var(--transition),
color var(--transition);
}

img {
max-width: 100%;
display: block;
}

a {
color: inherit;
text-decoration: none;
}
a.active {
    color: var(--active);
}

ul {
padding: 0;
list-style: none;
}

/* ========================================
Typography
======================================== */

h1,
h2,
h3,
h4 {
line-height: 1.2;
margin-top: 0;
}

h1 {
font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
font-size: 1.4rem;
}

p {
color: var(--text-light);
}

.large-font {
font-size: 1.1rem;
}

/* ========================================
Layout
======================================== */

.container {
width: min(1200px, 92%);
margin-inline: auto;
}

.section {
padding: 6rem 0;
}

/* ========================================
Header
======================================== */

header {
position: sticky;
top: 0;
z-index: 1000;

background: var(--bg-alt);

border-bottom:
1px solid var(--border);

backdrop-filter: blur(10px);
}

.header-inner {
min-height: var(--header-height);

display: flex;
align-items: center;
justify-content: space-between;

gap: 1rem;
}

.logo {
font-size: 1.4rem;
font-weight: 700;
}

.logo span {
color: var(--primary);
}

nav {
display: flex;
gap: 1.5rem;
}

nav a {
position: relative;
font-weight: 500;
}

nav a:hover {
color: var(--primary);
}

.controls {
display: flex;
gap: 0.5rem;
}

.controls button,
.mobile-toggle {
width: 44px;
height: 44px;

border: none;

border-radius: 10px;

background: var(--bg);

color: var(--text);

cursor: pointer;
}

.controls button:hover,
.mobile-toggle:hover {
background: var(--primary);
color: white;
}

/* ========================================
Mobile Navigation
======================================== */

.mobile-toggle {
display: none;
}

@media (max-width: 768px) {
.mobile-toggle {
display: block;
}

nav {
display: none;

position: absolute;

top: 100%;
left: 0;
right: 0;

background: var(--bg-alt);

flex-direction: column;

padding: 1rem;

border-bottom:
  1px solid var(--border);

}

nav.active {
display: flex;
}
}

/* ========================================
Hero
======================================== */

.hero {
min-height: 40vh;

display: flex;
align-items: center;
text-align: center;
}

.hero-content {
max-width: 900px;
margin: auto;
}

.hero p {
font-size: 1.2rem;
}

.hero-buttons {
margin-top: 2rem;

display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}

/* ========================================
Buttons
======================================== */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;

min-height: 48px;

padding: 0.9rem 1.5rem;

border-radius: 12px;

font-weight: 600;

transition: var(--transition);
}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-hover);
}

.btn-secondary {
border: 1px solid var(--border);
}

.btn-secondary:hover {
border-color: var(--primary);
}

/* ========================================
Cards
======================================== */

.cards {
display: grid;

grid-template-columns:
repeat(auto-fit, minmax(280px, 1fr));

gap: 1.5rem;
}

.card {
background: var(--bg-alt);

border:
1px solid var(--border);

border-radius: var(--radius);

padding: 2rem;

box-shadow: var(--shadow);

transition: var(--transition);
}

.card:hover {
transform: translateY(-5px);
}

/* ========================================
Gallery
======================================== */

.gallery {
display: grid;

grid-template-columns:
repeat(auto-fit, minmax(300px, 1fr));

gap: 1rem;
}

.gallery img {
border-radius: var(--radius);

aspect-ratio: 4/3;

object-fit: cover;
}

/* ========================================
Contact Form
======================================== */

form {
max-width: 700px;
margin-inline: auto;
}

.form-group {
margin-bottom: 1.5rem;
}

label {
display: block;

margin-bottom: 0.5rem;

font-weight: 600;
}

input,
textarea {
width: 100%;

padding: 1rem;

border-radius: 12px;

border:
1px solid var(--border);

background: var(--bg-alt);

color: var(--text);
}

textarea {
resize: vertical;
min-height: 180px;
}

input:focus,
textarea:focus {
outline: 2px solid var(--primary);
}

.hidden {
display: none;
}

/* ========================================
Link In Bio
======================================== */

.link-grid {
max-width: 600px;
margin-inline: auto;

display: grid;
gap: 1rem;
}

.link-card {
display: block;

padding: 1.2rem;

border-radius: var(--radius);

background: var(--bg-alt);

border:
1px solid var(--border);

text-align: center;

font-weight: 600;
}

.link-card:hover {
background: var(--primary);
color: white;
}

/* ========================================
Cookie Banner
======================================== */

#cookieBanner {
position: fixed;

bottom: 1rem;
left: 1rem;
right: 1rem;

z-index: 9999;

background: var(--bg-alt);

border:
1px solid var(--border);

border-radius: var(--radius);

box-shadow: var(--shadow);

padding: 1.5rem;
}

.cookie-content {
display: flex;

justify-content: space-between;

align-items: center;

gap: 2rem;
}

.cookie-actions {
display: flex;
gap: 0.75rem;
}

.cookie-actions button {
border: none;

padding: 0.75rem 1.25rem;

border-radius: 10px;

cursor: pointer;
}

.cookie-actions button:first-child {
background: var(--primary);
color: white;
}

@media (max-width: 768px) {
.cookie-content {
flex-direction: column;
align-items: flex-start;
}
}

/* ========================================
Footer
======================================== */

footer {
border-top:
1px solid var(--border);

padding: 2rem 0;

text-align: center;
}

footer a:hover {
color: var(--primary);
}

/* ========================================
Back To Top
======================================== */

#backToTop {
position: fixed;

right: 1.5rem;
bottom: 1.5rem;

width: 50px;
height: 50px;

border: none;

border-radius: 50%;

background: var(--primary);

color: white;

cursor: pointer;

opacity: 0;
visibility: hidden;

transition: var(--transition);
}

#backToTop.show {
opacity: 1;
visibility: visible;
}

/* ========================================
Accessibility
======================================== */

:focus-visible {
outline: 3px solid var(--primary);
outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

* {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
  }
  }

/* ========================================
Scroll Reveal
======================================== */

.reveal {
opacity: 0;
transform: translateY(40px);

transition:
opacity 0.8s ease,
transform 0.8s ease;
}

.reveal.visible {
opacity: 1;
transform: translateY(0);
}

/* ========================================
Logo
======================================== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--primary);
}

/* ========================================
Form Validation
======================================== */
#formStatus {
  margin-top: 1rem;
  font-weight: 500;
}

#formStatus.info {
  color: var(--text-light);
}

#formStatus.success {
  color: #16a34a;
}

#formStatus.error {
  color: #dc2626;
}
/* ========================================
Form Validation Styles
======================================== */
input.invalid,
textarea.invalid {
    border-color: #dc2626;
    background-color: rgba(220,38,38,.05);
}
input.invalid:focus,
textarea.invalid:focus {
    outline-color: #dc2626;
}
.field-error {
    display:block;

    margin-top:.4rem;

    color:#dc2626;

    font-size:.9rem;
}
button:disabled {
    opacity:.5;
    cursor:not-allowed;
}