/* Denmark-Booking.pro — Rosenborg Castle Book Library
   Shared stylesheet */

:root {
  --ink: #1c2433;
  --ink-soft: #47526a;
  --paper: #f7f5ef;
  --paper-2: #efeade;
  --gold: #b08b48;
  --gold-dark: #8c6d34;
  --royal: #2c3e63;
  --royal-dark: #1e2b46;
  --line: #e0d9c8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(28, 36, 51, 0.14);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-brand {
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: 0.2px;
}

a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--royal-dark);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.nav-brand {
  color: var(--paper);
  font-size: 1.28rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .crest { color: var(--gold); font-size: 1.4rem; }
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--paper);
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(30,43,70,0.82), rgba(30,43,70,0.88)),
    radial-gradient(circle at 30% 20%, #3a4d78, #1e2b46 70%);
  color: var(--paper);
  padding: 74px 0 66px;
  text-align: center;
}
.hero h1 { font-size: 2.55rem; margin: 0 0 16px; line-height: 1.2; }
.hero p { font-size: 1.18rem; max-width: 720px; margin: 0 auto 26px; color: #e7e2d4; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #2a2109;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.btn:hover { background: #c69a52; color: #2a2109; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: rgba(176,139,72,0.18); color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem;
  color: var(--gold-dark); margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

/* ---------- Book grid ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(28,36,51,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-cover {
  background: var(--paper-2);
  padding: 26px 26px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.book-cover img {
  max-height: 300px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(28,36,51,0.28);
}
.book-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.book-tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold-dark); margin-bottom: 8px;
}
.book-body h3 { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.35; }
.book-body p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 18px; flex: 1; }
.book-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.book-body .btn { align-self: flex-start; }

/* ---------- Feature strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  text-align: center;
  padding: 26px 20px;
}
.feature .ico { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: 1.12rem; margin: 0 0 8px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Book detail page ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--royal); }

.book-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0 20px;
}
.book-detail-cover {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.book-detail-cover img {
  border-radius: 5px;
  box-shadow: 0 14px 34px rgba(28,36,51,0.3);
  margin: 0 auto 22px;
}
.book-detail h1 { font-size: 2rem; margin: 0 0 8px; line-height: 1.25; }
.book-subtitle { color: var(--gold-dark); font-size: 1.05rem; font-style: italic; margin: 0 0 22px; }
.book-detail h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.book-detail p { color: #33405a; margin: 0 0 16px; }
.book-detail ul { color: #33405a; padding-left: 22px; margin: 0 0 18px; }
.book-detail li { margin-bottom: 7px; }

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 8px;
  font-size: 0.95rem;
}
.detail-table th, .detail-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.detail-table th { color: var(--ink-soft); font-weight: 600; width: 42%; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.pill {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
}

.note {
  background: #fbf8f0;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 26px 0;
}

/* ---------- Legal / content pages ---------- */
.legal { padding: 46px 0 60px; max-width: 820px; }
.legal h1 { font-size: 2.1rem; margin: 0 0 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 30px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #33405a; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--royal-dark);
  color: #cdd4e2;
  padding: 50px 0 26px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: var(--paper); font-size: 1.05rem; margin: 0 0 14px; }
.footer-brand .nav-brand { color: var(--paper); margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; color: #aab3c6; margin: 0; max-width: 320px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cdd4e2; font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #98a2b8;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(28,36,51,0.28);
  padding: 20px 22px;
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { margin: 0 0 8px; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 16px; font-size: 0.9rem; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { font-size: 0.9rem; padding: 9px 18px; }
.btn-line {
  background: transparent;
  border: 1.5px solid var(--royal);
  color: var(--royal);
}
.btn-line:hover { background: var(--royal); color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .book-grid, .features { grid-template-columns: 1fr 1fr; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail-cover { position: static; max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--royal-dark);
    flex-direction: column;
    padding: 12px 22px 20px;
    gap: 4px;
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle { display: block; }
  .book-grid, .features, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 54px 0 48px; }
}
