/* ============================================================
   Sluseholmen.com – Nordisk Havn Design
   Farver: Havblåt #0A2342, Sand #F5F0E8, Rust #C4622D, Hvid #FFFFFF
   Fonte: Playfair Display (overskrifter) + Source Sans 3 (brødtekst)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --navy:   #0A2342;
  --navy2:  #0D2E54;
  --rust:   #C4622D;
  --sand:   #F5F0E8;
  --sand2:  #EDE7D9;
  --white:  #FFFFFF;
  --text:   #1A1A2E;
  --muted:  #6B7280;
  --border: #D1C9B8;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(10,35,66,.10);
  --shadow-lg: 0 8px 32px rgba(10,35,66,.16);
}

html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white) !important; text-decoration: none;
  letter-spacing: -.5px;
}
.navbar-brand span { color: var(--rust); }
.navbar-nav { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.navbar-nav a { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 400; transition: color .2s; }
.navbar-nav a:hover { color: var(--white); text-decoration: none; }
.navbar-cta {
  background: var(--rust); color: var(--white) !important;
  padding: .45rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; transition: background .2s;
}
.navbar-cta:hover { background: #a84f22 !important; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  filter: brightness(.55);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,35,66,.7) 0%, rgba(10,35,66,.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--rust); color: var(--white);
  font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 3px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 2rem; max-width: 520px; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--white); font-weight: 700; }
.hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-primary:hover { background: #a84f22; border-color: #a84f22; text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); text-decoration: none; color: var(--white); }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

/* ── Sektion-header ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rust); margin-bottom: .6rem;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); }
.section-header p { color: var(--muted); max-width: 560px; margin: .75rem auto 0; font-size: 1.05rem; }

/* ── Søgebar ─────────────────────────────────────────────── */
.search-bar {
  background: var(--white); border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex; overflow: hidden;
  max-width: 600px;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: .9rem 1.5rem; font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  background: transparent;
}
.search-bar button {
  background: var(--rust); color: var(--white);
  border: none; padding: .9rem 1.5rem;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  transition: background .2s;
}
.search-bar button:hover { background: #a84f22; }

/* ── Kategori-chips ──────────────────────────────────────── */
.category-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  padding: .4rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 2px solid var(--border); background: var(--white);
  color: var(--text); transition: all .2s; text-decoration: none;
}
.chip:hover, .chip.active {
  background: var(--navy); color: var(--white);
  border-color: var(--navy); text-decoration: none;
}

/* ── Business-kort ───────────────────────────────────────── */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.business-card {
  background: var(--white); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.business-card-img {
  height: 180px; overflow: hidden; position: relative;
  background: var(--sand2);
}
.business-card-img img { width: 100%; height: 100%; object-fit: cover; }
.business-card-badge {
  position: absolute; top: .75rem; right: .75rem;
  background: var(--navy); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  padding: .25rem .6rem; border-radius: 3px; text-transform: uppercase;
}
.business-card-badge.premium { background: var(--rust); }
.business-card-body { padding: 1.25rem; }
.business-card-cat {
  font-size: .78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--rust); margin-bottom: .4rem;
}
.business-card-name { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.business-card-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
.business-card-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); }
.business-card-meta a { color: var(--rust); }

/* ── Events ──────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s;
}
.event-card:hover { transform: translateY(-3px); }
.event-card-img { height: 160px; overflow: hidden; background: var(--sand2); }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 1.25rem; }
.event-date-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--sand); color: var(--navy);
  font-size: .8rem; font-weight: 600; padding: .3rem .7rem;
  border-radius: 4px; margin-bottom: .75rem;
}
.event-card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.event-card-loc { font-size: .85rem; color: var(--muted); }

/* ── Prissektionen ───────────────────────────────────────── */
.pricing-section { background: var(--sand); padding: 5rem 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: var(--white); border-radius: 12px;
  border: 2px solid var(--border); padding: 2rem;
  text-align: center; transition: transform .2s, box-shadow .2s;
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(196,98,45,.15);
}
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--rust); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 50px;
}
.pricing-plan { font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); margin-bottom: .5rem; }
.pricing-price { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--navy); font-weight: 700; }
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li { padding: .5rem 0; font-size: .9rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5rem; }
.pricing-features li:last-child { border-bottom: none; }
.check { color: #059669; font-weight: 700; }
.cross { color: #DC2626; }

/* ── Formular ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: .95rem;
  transition: border-color .2s; background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--navy); }
.form-control.error { border-color: #DC2626; }
.form-error { color: #DC2626; font-size: .82rem; margin-top: .25rem; }
.form-hint { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Alert ───────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .95rem; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #059669; }
.alert-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* ── Sektioner ───────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy p, .section-navy li { color: var(--white); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: .75rem; }
.footer-brand span { color: var(--rust); }
.footer h4 { color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color .2s; }
.footer ul a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-credit { font-size: .75rem; color: rgba(255,255,255,.35); }

/* ── Admin ───────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--navy); color: var(--white);
  padding: 1.5rem 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand { padding: 0 1.5rem 1.5rem; font-family: 'Playfair Display', serif; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-brand span { color: var(--rust); }
.admin-nav { list-style: none; padding: 1rem 0; }
.admin-nav li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; color: rgba(255,255,255,.7);
  font-size: .9rem; transition: all .2s;
}
.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(255,255,255,.08); color: var(--white); text-decoration: none;
}
.admin-nav li a.active { border-left: 3px solid var(--rust); }
.admin-main { flex: 1; background: #F8F9FA; padding: 2rem; overflow-y: auto; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.6rem; color: var(--navy); }
.admin-card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: .75rem 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--sand); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.stat-card-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); font-weight: 700; }
.stat-card-label { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.badge-pending  { background: #FEF3C7; color: #92400E; }
.badge-active   { background: #D1FAE5; color: #065F46; }
.badge-expired  { background: #FEE2E2; color: #991B1B; }
.badge-cancelled{ background: #F3F4F6; color: #374151; }

/* ── Responsiv ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: .75rem; }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: block; }
  .hero { min-height: 420px; }
  .hero-stats { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .pricing-grid { grid-template-columns: 1fr; }
}
