/* Etallic Group AB - Huvudstil */
:root {
    --bg: #0c0c0e;
    --bg-elevated: #141417;
    --bg-card: #1a1a1f;
    --border: #2a2a30;
    --text: #e8e8ec;
    --text-muted: #909098;
    --text-dim: #5a5a62;
    --accent: #c9a84c;
    --accent-hover: #dbb960;
    --accent-glow: rgba(201, 168, 76, 0.15);
    --danger: #c94c4c;
    --success: #4cc97c;
    --radius: 6px;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    border-radius: var(--radius);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-muted {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.main-nav .nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    font-weight: 600;
}

.main-nav .nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 64px;
    max-width: 600px;
}

.section-header h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.section-header .section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px; height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--accent);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Clients */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.client-logo-wrap {
    height: 180px;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.client-logo-wrap img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    transition: var(--transition);
}

.client-card:hover .client-logo-wrap img {
    transform: scale(1.05);
}

.client-info {
    padding: 28px;
}

.client-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.client-info .client-meta {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.client-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item div strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item div span {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    background: rgba(76, 201, 124, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-status.error {
    background: rgba(201, 76, 76, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    background: var(--bg-elevated);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links a,
.footer-links p {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* Admin */
.admin-body {
    background: var(--bg-elevated);
}

.admin-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.admin-nav {
    display: flex;
    gap: 8px;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--text);
    background: var(--bg-elevated);
}

.admin-main {
    padding: 40px 0;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text);
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-new { background: rgba(201, 168, 76, 0.15); color: var(--accent); }
.badge-read { background: rgba(90, 90, 98, 0.2); color: var(--text-muted); }
.badge-replied { background: rgba(76, 201, 124, 0.15); color: var(--success); }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 32px;
}

.login-box h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero { padding: 120px 0 60px; }
    .section { padding: 60px 0; }
    .admin-card { padding: 20px; overflow-x: auto; }
    .data-table { min-width: 600px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
