/* ═══════════════════════════════════════════════
   360digital Global Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── Brand Variables ─── */
:root {
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --color-brand: #1A3131;
  --color-brand-light: #243d3d;
  --color-brand-lighter: #3a5555;
  --color-gold: #A18E6D;
  --color-gold-hover: #8a7859;
  --color-gold-bg: #f0ebe3;
  --color-gold-bg-light: #f8f7f5;
  --color-black: #1A3131;
  --color-zinc-800: #1A3131;
  --color-zinc-700: #243d3d;
  --color-zinc-600: #3a5555;
}

/* ─── Brand Color Overrides (Tailwind utility remapping) ─── */
.bg-black { background-color: var(--color-brand) !important; }
.hover\:bg-black:hover { background-color: var(--color-brand) !important; }
.group-hover\:bg-black:is(:where(.group):hover *) { background-color: var(--color-brand) !important; }
.hover\:bg-zinc-800:hover { background-color: var(--color-brand) !important; }
.text-black { color: var(--color-brand) !important; }
.hover\:text-black:hover { color: var(--color-brand) !important; }
.group-hover\:text-black:is(:where(.group):hover *) { color: var(--color-brand) !important; }
.border-black { border-color: var(--color-brand) !important; }
.selection\:bg-black ::selection,
.selection\:bg-black::selection { background-color: var(--color-brand) !important; }
.bg-\[\#141414\] { background-color: var(--color-brand) !important; }

/* Decorative elements → brand gold */
.bg-zinc-300.rounded-full.blur-3xl,
.bg-zinc-400.rounded-full.blur-\[100px\] { background-color: var(--color-gold) !important; }

/* Icon buttons → brand */
.rounded-full.bg-zinc-100 { background-color: var(--color-gold-bg) !important; }
.rounded-full.bg-zinc-100:hover { background-color: var(--color-brand) !important; }

/* Border accents → gold */
.border-b-2 { border-bottom-color: var(--color-gold) !important; }

/* ─── Bento Card System ─── */
.bento-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: white;
  /* min-height: 230px; */
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.3s;
}
/* @media (min-width: 1024px) { .bento-card { padding: 1.5rem; } } */
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.38); }
.bento-card .bento-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.bento-card .bento-icon { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); flex-shrink: 0; }
.bento-card .bento-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.40); }
.bento-card .bento-body { flex: 1; }
.bento-card h4 { color: white !important; }
.bento-card .bento-desc { font-size: 0.875rem; line-height: 1.625; color: rgba(255,255,255,0.60); }
.bento-card .bento-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); transition: color 0.2s, gap 0.2s; }
.bento-card:hover .bento-footer { color: rgba(255,255,255,0.90); gap: 0.75rem; }

/* ─── Bento Background Palette ─── */
.bento-dark      { background-color: var(--color-brand); }
.bento-teal-mid  { background-color: var(--color-brand-light); }
.bento-teal-lite { background-color: var(--color-brand-lighter); }
.bento-teal-pale { background-color: #4a6565; }
.bento-orange    { background-color: #FF5422; }
.bento-orange-lt { background-color: #FF7A45; }
.bento-orange-dk { background-color: #E83C0A; }
.bento-gold      { background-color: var(--color-gold); }
.bento-gold-dark { background-color: var(--color-gold-hover); }

/* ─── Global Site Width ─── */
.max-w-7xl { max-width: 1800px !important; }
.max-w-4xl { max-width: 1800px !important; }

/* ─── Responsive Headings ─── */
/* All headings: never cut off, always wrap cleanly */
h1, h2, h3, h4 {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
}

/* Frontpage hero H1 */
.hero-frontpage h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 7rem) !important;
}

/* Subpage hero H1s (the big title) */
.hero-subpage h1:not(.text-sm):not(.text-xs) {
  font-size: clamp(2rem, 4vw + 1rem, 4.5rem) !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Subpage hero H2s */
.hero-subpage h2 {
  font-size: clamp(2rem, 4vw + 1rem, 4.5rem) !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* ─── Global Section Headings ─── */
/* Large section H2s (e.g. text-4xl / text-5xl in CTAs and content sections) */
section h2.text-5xl,
section h2.text-4xl {
  font-size: clamp(1.75rem, 3.5vw + 0.75rem, 3.5rem) !important;
}

/* Medium section H3s (bento grid section label, service cards heading) */
section h3.text-5xl,
section h3.text-4xl,
section h3.text-3xl {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem) !important;
}

/* Card H4s in bento grid (text-2xl, text-xl) */
.grid h4.text-2xl {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem) !important;
}

/* ─── Contact Page Info Text ─── */
/* Responsive contact detail text (email, phone, address) */
.contact-detail-text {
  font-size: clamp(1rem, 3vw + 0.1rem, 1.5rem) !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Mobile Padding ─── */
@media (max-width: 768px) {
  .hero-subpage {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  /* Reduce py-22 section gaps on mobile */
  section.py-22 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* ─── Frontpage Hero Grid ─── */
.hero-frontpage .max-w-7xl.grid {
  width: 100% !important;
}

/* ─── Subpage Hero Text Width ─── */
.hero-subpage .max-w-3xl {
  max-width: 1100px !important;
}

/* ─── Blog Post Layout ─── */
.blog-layout > .blog-header,
.blog-layout > .blog-body {
  max-width: 1800px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}
.blog-layout > .blog-header > *,
.blog-layout > .blog-body > * {
  max-width: 1800px;
}
.blog-layout > .blog-image {
  max-width: 1800px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}
.blog-layout > .blog-image > * {
  max-width: 1800px;
}

/* ─── Blog Post Styling ─── */
.blog-byline {
  margin: 24px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e4e4e7;
}
.blog-byline-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #6b7280;
}
.blog-author strong { color: var(--color-brand); }
.blog-separator { color: #d1d5db; }
.blog-readtime { color: #9ca3af; }

.blog-extra { margin: 16px 0 8px; }
.blog-extra p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}
.blog-extra ul.blog-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.blog-extra ul.blog-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.blog-extra ul.blog-list li:last-child { border-bottom: none; }
.blog-extra ul.blog-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

.blog-tip-box {
  background: var(--color-gold-bg-light);
  border-left: 4px solid var(--color-gold);
  padding: 20px 24px;
  margin: 20px 0 28px;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}
.blog-tip-box strong {
  color: var(--color-brand);
  display: block;
  margin-bottom: 4px;
}

.blog-conclusion {
  /* background: linear-gradient(135deg, var(--color-gold-bg-light) 0%, var(--color-gold-bg) 100%); */
  padding: 32px;
  border-radius: 16px;
  margin: 40px 0 32px;
}
.blog-conclusion h2 {
  font-size: 1.5rem !important;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 16px;
}
.blog-conclusion p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 12px;
}
.blog-conclusion p:last-child { margin-bottom: 0; }

.blog-cta { margin: 48px 0 32px; }
.blog-cta-inner {
  background: var(--color-brand);
  color: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}
.blog-cta-inner h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.blog-cta-inner p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta-button {
  display: inline-block;
  background: var(--color-gold);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.blog-cta-button:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.blog-related {
  margin: 40px 0 20px;
  padding-top: 32px;
  border-top: 1px solid #e4e4e7;
}
.blog-related h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 16px;
}
.blog-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-gold-bg-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-brand);
  transition: background 0.2s, transform 0.2s;
}
.blog-related-link:hover {
  background: var(--color-gold-bg);
  transform: translateX(4px);
}
.blog-related-title { font-size: 1.1rem; font-weight: 600; }
.blog-related-arrow { font-size: 1.3rem; color: var(--color-gold); }

/* Blog body typography */
.blog-body p {
  font-size: 1.05rem;
  line-height: 1.85;
}
.blog-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

/* ─── Medieordbog ─── */
.ordbog-search {
  position: relative;
  max-width: 36rem;
}
.ordbog-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
}
.ordbog-search input {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1.125rem;
  outline: none;
  transition: all 0.2s;
}
.ordbog-search input:focus {
  box-shadow: 0 0 0 2px rgba(26, 49, 49, 0.1);
}

/* ─── Blog TOC ─── */
.blog-toc {
  background: var(--color-gold-bg-light);
  border: 1px solid #e8e4dd;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0 40px;
}
.blog-toc-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 16px;
}
.blog-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}
.blog-toc ol li {
  counter-increment: toc-counter;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.blog-toc ol li:last-child { border-bottom: none; }
.blog-toc ol li::before {
  content: counter(toc-counter) ".";
  color: var(--color-gold);
  font-weight: 700;
  margin-right: 10px;
}
.blog-toc ol li a {
  color: var(--color-brand);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.blog-toc ol li a:hover { color: var(--color-gold); }

/* ─── Blog Pillars Grid ─── */
.blog-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 40px;
}
@media (max-width: 640px) {
  .blog-pillars-grid { grid-template-columns: 1fr; }
}
.blog-pillar-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-pillar-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.blog-pillar-letter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.blog-pillar-en {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brand);
}
.blog-pillar-da {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 8px;
}
.blog-pillar-card p {
  font-size: 0.9rem !important;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* ─── Blog Pull Quote ─── */
.blog-pull-quote {
  border-left: 4px solid var(--color-gold);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--color-gold-bg-light);
  border-radius: 0 16px 16px 0;
}
.blog-pull-quote p {
  font-size: 1.2rem !important;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-brand);
  margin-bottom: 8px;
}
.blog-pull-quote cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-gold);
  font-weight: 600;
}

/* ─── Blog Checklist ─── */
.blog-checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 40px;
}
.blog-checklist li {
  position: relative;
  padding: 12px 0 12px 36px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ─── Blog Tip Box List ─── */
.blog-tip-box ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.blog-tip-box ul li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}
.blog-tip-box ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

/* ─── Animations ─── */
.fade-in {
  opacity: 1 !important;
  transform: none !important;
}
