/* -----------------------------------
   GOOGLE FONT
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* -----------------------------------
   ROOT VARIABLES
----------------------------------- */
:root {
    --primary: #4e7149;            /* Grön premium färg */
    --primary-dark: #3f5c3b;       /* Mörkare grön */
    --primary-light: #eef4f0;      /* Ljusgrön bakgrund */

    --bg: #ffffff;
    --bg-soft: #f4f6f4;

    --text: #2a2a2a;
    --text-light: #666;

    --border: #d7e0d7;

    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* -----------------------------------
   GLOBAL RESET
----------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* -----------------------------------
   CONTAINER
----------------------------------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* -----------------------------------
   HEADER
----------------------------------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--primary-dark);
}

/* NAVIGATION */
nav a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* -----------------------------------
   BUTTONS
----------------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
}

/* Admin small buttons */
.btn-small {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 13px;
}

.btn-danger-small {
    background: #e35252;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 13px;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
/* FOOTER */
.footer {
    background: #4e7149;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* BRAND LOGO IMG */
.footer-logo {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Footer logo as image */
.footer-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Subtle premium hover */
.footer-logo a:hover img {
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

/* Mobile */
@media (max-width: 600px) {
    .footer-logo img {
        height: 36px;
        max-width: 180px;
    }
}

.footer-text {
    max-width: 260px;
    line-height: 1.6;
    opacity: 0.9;
}

/* LINKS */
.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-links a,
.footer-social a {
    display: block;
    color: #f2f6f3;
    margin-bottom: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* INSTAGRAM ICON */
.ig-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-right: 8px;
    vertical-align: middle;
    transition: 0.2s;
}

.ig-link:hover .ig-icon {
    transform: scale(1.1);
}

/* SOCIAL LINKS */
.social-link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    color: #f2f6f3;
    transition: 0.2s ease;
}

.social-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* ICON */
.social-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-right: 10px;
    transition: 0.2s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.12);
}

/* FACEBOOK ICON */
.facebook-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-right: 10px;
    transition: 0.2s ease;
}

.social-link:hover .facebook-icon {
    transform: scale(1.12);
}

/* BOTTOM BAR */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links a,
    .footer-social a {
        margin-bottom: 10px;
    }
}

/* -----------------------------------
   CARDS (Global)
----------------------------------- */
.card,
.service-card,
.dashboard-card,
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.card:hover,
.service-card:hover,
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* -----------------------------------
   TABLES (Premium)
----------------------------------- */
.table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.admin-table th {
    background: var(--primary-light);
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

.table td,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

/* -----------------------------------
   MODALS
----------------------------------- */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    width: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* -------------------------------
   LOGIN / AUTH STYLING
---------------------------------- */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
}

/* error */
.auth-error {
    background: #ffe2e2;
    color: #c0392b;
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    text-align: center;
}

/* form */
.auth-form label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(196,154,219,0.25);
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
}

/* footer */
.auth-alt {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-alt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* animation */
@keyframes fadeIn {
    from {opacity:0; transform:translateY(10px);}
    to   {opacity:1; transform:translateY(0);}
}

.tag {
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
}

.tag.booked {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tag.cancelled {
    background: #ffe1e1;
    color: #c0392b;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.page-section {
    padding: 30px 0;
}

/* -----------------------------
   USER DASHBOARD
------------------------------ */

.dashboard-container {
    padding: 40px 0;
}

.dashboard-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.dashboard-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.dashboard-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dashboard-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.dashboard-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* -----------------------------
   USER PROFILE PAGE
------------------------------ */

.profile-container {
    padding: 40px 0;
}

.profile-card {
    max-width: 480px;
    margin: 0 auto;
}

.profile-card form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 15px;
}

.profile-card form input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.profile-card form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(196,154,219,0.25);
}

.profile-save-btn {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    font-size: 15px;
}

/* -----------------------------
   REGISTER / AUTH COMMON STYLES
------------------------------ */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
}

/* error */
.auth-error {
    background: #ffe2e2;
    color: #c0392b;
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    text-align: center;
}

/* form */
.auth-form label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(196,154,219,0.25);
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
}

/* link under form */
.auth-alt {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-alt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* animation */
@keyframes fadeIn {
    from {opacity:0; transform:translateY(12px);}
    to   {opacity:1; transform:translateY(0);}
}

.logout-link {
    color: #e35b5b;
    font-weight: 600;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Make footer stick to bottom across all pages */
html, body {
    height: 100%;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* -----------------------------------
   404 ERROR PAGE
------------------------------------- */
.error-page {
    padding: 80px 20px;
    text-align: center;
}

.error-container {
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 90px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.error-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-btn {
    padding: 12px 30px;
    font-size: 16px;
}

/* -----------------------------------
   500 ERROR PAGE (same design as 404)
------------------------------------- */
.error-page {
    padding: 80px 20px;
    text-align: center;
}

.error-container {
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 90px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.error-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-btn {
    padding: 12px 30px;
    font-size: 16px;
}

.auth-success {
    background: #e6ffe8;
    color: #2e7d32;
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #b2dfbb;
    font-weight: 600;
}

/* ===================================
   CONTACT PAGE PREMIUM DESIGN
=================================== */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.info-sub {
    color: var(--text-light);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.info-item .icon {
    font-size: 28px;
    margin-right: 12px;
}

.contact-form-card form label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.contact-form-card textarea {
    height: 120px;
    resize: none;
}

/* Focus style */
.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(78,113,73,0.2); /* grön ton */
}

.contact-btn {
    width: 100%;
    margin-top: 20px;
}

/* Success & Error */
.contact-success {
    background: #e3f9e8;
    color: #1f7a34;
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.contact-error {
    background: #ffe2e2;
    color: #c0392b;
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   HEADER
=========================== */
.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===========================
   LOGO (image support)
=========================== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

/* If you use an image inside .logo */
.logo img {
    display: block;
    height: 44px;     /* desktop */
    width: auto;
    max-width: 180px; /* prevents oversized logos */
    object-fit: contain;
}

/* Optional: if you still keep text logo as fallback */
.logo span {
    display: none; /* hide empty span / text fallback */
}

/* Hover feels premium */
.logo:hover img {
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

/* Mobile size */
@media (max-width: 600px) {
    .logo img {
        height: 38px;
        max-width: 150px;
    }
}

/* ===========================
   NAV WRAPPER
=========================== */
nav {
    position: relative;
}

/* ===========================
   DESKTOP LINKS
=========================== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;        /* PERFECT spacing */
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    transition: 0.2s ease;
    padding: 6px 0;
}

.nav-links a:hover {
    color: #4e7149;
}

.logout-link {
    color: #d9534f !important;
    font-weight: 600;
}

/* ===========================
   MOBILE: BURGER
=========================== */
.nav-toggle {
    display: none;
    width: 34px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle div {
    width: 100%;
    height: 4px;
    background: #111;
    border-radius: 3px;
}

/* ===========================
   MOBILE: DROPDOWN PANEL
=========================== */
@media (max-width: 850px) {

    /* hide desktop menu */
    .nav-links {
        display: none;
        position: absolute;
        top: 48px;
        right: 0;
        background: #ffffff;
        width: 220px;
        padding: 20px;
        border-radius: 14px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        flex-direction: column;
        gap: 14px;
        text-align: left;       /* <-- FIXED: no centering */
        align-items: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    /* show burger */
    .nav-toggle {
        display: flex;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 340px;
    background: #4e7149;
    color: #fff;
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
    z-index: 9999;
    animation: fadeUp 0.4s ease forwards;
}

.cookie-banner p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.cookie-banner a {
    color: #e6efe7;
    text-decoration: underline;
}

.btn-accept {
    background: #ffffff;
    color: #4e7149;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    width: 100%;
}

.btn-accept:hover {
    background: #eef4f0;
}

.hidden {
    display: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* MOBIL */
@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

/* Developer Modal */
.dev-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.dev-modal.hidden {
    display: none;
}

.dev-modal-content {
    background: #fff;
    width: 90%;
    max-width: 650px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.dev-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    margin-top: -10px;
}

.dev-modal-content h2 {
    margin-bottom: 15px;
    color: #4e7149;
}

.dev-modal-content ul {
    margin-left: 20px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.08);
}

.footer-bottom-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f2f6f3;
    font-size: 0.9rem;
}

.footer-bottom-inner a {
    color: #dce7dd;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.footer-bottom-inner a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
