/* Pulse and Art shared styles (clean, single copy) */
:root {
  --bg: #f6f8fa;
  --sand: #fdf6ee;
  --gray: #7a8ca3;
  --text: #1f2d3d;
  --accent: #159957;
  --accent-dark: #155799;
  --accent-light: #e3f4ec;
  --coral: #155799;
  --border: #dbeafe;
  --shadow: 0 2px 14px rgba(28, 200, 238, 0.12);
  --radius: 14px;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-blur: blur(14px);
  --content-width: min(1240px, 96vw);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }
img { max-width: 100%; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link:focus, .skip-link:active {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  outline: 2px solid #fff;
}

/* Header & navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.6rem;
  position: relative;
}
.logo img { height: 64px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; }
  .nav-links > li { position: relative; }
  .nav-links a { color: #0f4f63; font-weight: 600; letter-spacing: 0.01em; padding: 0.25em 0.6em; border-radius: 999px; font-size: 0.98rem; }
  .nav-links a:hover, .nav-links a:focus { background: var(--accent); color: #fff; }
.submenu { display: none; position: absolute; left: 0; top: 2.3em; min-width: 200px; list-style: none; padding: 0.6em 0.3em; margin: 0; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 1200; }
.submenu li { margin: 0; }
.submenu a { display: block; color: var(--text); padding: 0.55em 1.1em; border-radius: 8px; }
.submenu a:hover, .submenu a:focus { background: var(--accent-light); color: var(--accent-dark); }
.nav-links li:hover > .submenu, .nav-links li:focus-within > .submenu { display: block; }
.lang-switch { margin-left: 0.6rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 50%; padding: 0.45rem 0.55rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 3px; margin: 4px 0; background: var(--accent); border-radius: 2px; transition: all 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur); box-shadow: 0 8px 18px rgba(0,0,0,0.08); flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; display: none; }
  .nav-links.open { display: flex; }
  .submenu { position: static; width: 100%; box-shadow: none; padding: 0; }
  .nav-toggle { display: inline-block; }
}

/* Layout */
.layout { display: flex; gap: 2rem; align-items: flex-start; max-width: var(--content-width); margin: 0 auto; padding: 1.8rem 0 2.4rem; }
main { flex: 1 1 0; min-width: 0; max-width: min(800px, 94vw); }
@media (max-width: 979px) { .layout { flex-direction: column; padding: 1.2rem 0.8rem 2.2rem; gap: 1.4rem; } }

section { margin-bottom: 2.6rem; }
section:last-child { margin-bottom: 0; }
section h2 { color: var(--accent-dark); margin: 0 0 0.7em 0; font-size: 1.6rem; }
h2[id], h3[id], section[id] { scroll-margin-top: 96px; }

/* Hero */
.hero-frame { position: relative; margin: 0; isolation: isolate; }
.hero-frame::before {
  /* decorative background removed to avoid artifact between header and hero */
  display: none;
}
.hero-frame::after {
  /* Icon-inspired wings that hug the hero without widening the text */
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: calc(100% - 2rem);
  height: 220px;
  top: 60px;
  background:
    radial-gradient(ellipse at 22% 45%, rgba(21, 153, 87, 0.26), transparent 54%),
    radial-gradient(ellipse at 78% 55%, rgba(21, 87, 153, 0.24), transparent 56%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.16), transparent 48%);
  /* Decorative wings disabled to avoid visual artifacts near the header */
  display: none;
}

#home {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  margin: 1.6rem auto 0;
  box-shadow: var(--shadow);
  max-width: 1040px;
  overflow: hidden;
}
#home h1 { margin: 0 0 0.4em 0; font-size: 2.5rem; }
#home h2 { margin: 0 0 0.6em 0; font-weight: 400; color: #f7fbff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); }
#home p { max-width: 620px; margin: 0 auto 1.6em; }

.hero-card { background: linear-gradient(120deg, var(--sand) 80%, var(--accent-light) 100%); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); text-align: center; }
.hero-card h2 { margin: 0 0 0.5em 0; }
.hero-card p { margin: 0 0 1.1em 0; color: var(--text); }

/* Buttons */
.btn { display: inline-block; font-weight: 700; border-radius: 999px; padding: 0.8em 1.9em; text-decoration: none; font-size: 1.05rem; transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 2px 14px rgba(21,153,87,0.16); }
.btn.primary:hover, .btn.primary:focus { background: var(--accent-dark); color: #fff; }
.btn.secondary { background: var(--accent-light); color: var(--accent-dark); border: 2px solid var(--accent); }
.btn.secondary:hover, .btn.secondary:focus { background: var(--accent); color: #fff; }
.cta-btn { display: inline-block; background: linear-gradient(90deg, var(--accent) 60%, var(--accent-dark) 100%); color: #fff; font-weight: 700; padding: 0.9rem 1.6rem; border-radius: 40px; text-decoration: none; font-size: 1.06rem; box-shadow: 0 2px 16px rgba(21,153,87,0.16); }
.cta-btn:hover, .cta-btn:focus { background: var(--accent-dark); color: #fff; box-shadow: 0 4px 20px rgba(21,87,153,0.18); }

/* Trusted logos: constrain height and keep aspect ratio; responsive reductions on narrow screens */
#trusted { padding: 1.4rem 0; }
/* Trusted logos: slightly smaller to better fit the section */
/* Trusted logos: base sizing to fit the section */
#trusted img { height: 48px; max-height: 48px; width: auto; object-fit: contain; }
@media (max-width: 900px) {
  #trusted img { height: 36px; max-height: 36px; }
}

/* Aarhus University: larger emphasis than other trusted logos */
#trusted img.au-logo { height: 96px; max-height: 96px; }
@media (max-width: 900px) {
  #trusted img.au-logo { height: 64px; max-height: 64px; }
}

/* Small tweak: vertically center logos with baseline alignment */
#trusted picture, #trusted img { display: inline-block; vertical-align: middle; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin-bottom: 1.6rem; }
.gallery-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery-item a { display: block; width: 100%; height: 100%; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.gallery-item a:hover img { filter: brightness(1.08); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); cursor: pointer; transition: filter 0.25s ease; }
.gallery-price { padding: 0.8rem 1rem 1rem; color: var(--accent-dark); font-weight: 600; }

/* Signature Work section: prominent single-card presentation above featured work */
.signature-section .signature-card { display: block; text-decoration: none; color: inherit; max-width: 760px; margin: 0.5rem 0 0.8rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.signature-section .signature-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.signature-section .signature-meta { padding: 0.8rem 1rem 1rem; }
.signature-section .signature-meta strong { display: block; font-size: 1.1rem; color: var(--accent-dark); margin-bottom: 0.25rem; }
.signature-section .muted { color: var(--gray); font-size: 0.95rem; }

@media (max-width: 700px) {
  .signature-section .signature-card img { height: 200px; }
}

/* Portfolio stacks: show a few, scroll the rest */
.portfolio-stack { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 1.2rem; padding: 0.2rem 0.2rem 0.8rem; }
.portfolio-stack .stack-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.8rem 0.9rem 0.2rem; }
.portfolio-stack h3 { margin: 0; color: var(--accent-dark); }
.pill { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.9rem; font-weight: 600; }
.stack-note { margin: 0 0.9rem 0.5rem; color: var(--gray); font-size: 0.95rem; }
.scrollable-gallery { max-height: 520px; overflow-y: auto; padding: 0 0.7rem 0.7rem; margin-bottom: 0; }
.scrollable-gallery .gallery-item { margin-top: 0; }
.scrollable-gallery::-webkit-scrollbar { width: 10px; }
.scrollable-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* Scrollable gallery: vertical scrolling with max-height */
.scrollable-gallery { max-height: 520px; overflow-y: auto; overflow-x: hidden; padding: 0 0.7rem 0.7rem; margin-bottom: 0; }
.scrollable-gallery .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.scrollable-gallery .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Section and heading adjustments for tighter parity */
.hero-card { padding: 1.6rem 1.2rem; }
.hero-card h2 { font-size: 1.5rem; color: var(--accent-dark); margin-bottom: 0.6rem; }
.site-section h3 { font-size: 1.15rem; margin: 0 0 0.6rem 0; color: var(--accent-dark); }
.site-section p { color: var(--text); margin-bottom: 0.9rem; }

/* Team grid adjustments */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.team-member { background: #fff; border-radius: 12px; padding: 0.9rem; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(21,87,153,0.03); }
.team-member img { border-radius: 10px; width: 100%; height: auto; }

/* Slightly tighten layout spacing */
.layout { gap: 1.6rem; padding: 1.4rem 0 2rem; }

@media (max-width: 979px) {
  .scrollable-gallery .gallery { grid-auto-columns: minmax(200px, 82%); }
  .hero-card { padding: 1.4rem 1rem; }
}

/* Art sale sliders */
.sale-group { margin-bottom: 2rem; }
.sale-group h3 { margin: 0 0 0.4em 0; color: var(--accent-dark); }
.sale-carousel { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 0.8rem 1.4rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); overflow: hidden; }
.sale-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem; overflow-x: auto; padding: 0 1.4rem 0.3rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sale-track::-webkit-scrollbar { display: none; }
.sale-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.sale-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.sale-card .gallery-price { padding: 0.8rem 0.9rem 1rem; margin: 0; }
.sale-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.08); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, color 0.15s; }
.sale-nav:hover, .sale-nav:focus { background: var(--accent); color: #fff; }
.sale-nav.prev { left: 0.55rem; }
.sale-nav.next { right: 0.55rem; }
.sale-nav span { font-weight: 700; font-size: 1.1rem; line-height: 1; }

@media (max-width: 700px) {
  .sale-track { grid-auto-columns: minmax(200px, 75%); padding: 0 1rem 0.3rem; }
  .sale-nav.prev { left: 0.35rem; }
  .sale-nav.next { right: 0.35rem; }
}

/* Workshops */
.workshops-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.workshop { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1rem; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.workshop h3 { margin: 0 0 0.4em 0; color: var(--text); font-size: 1.08rem; }
.workshop p { margin: 0; color: var(--text); }

.workshop-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.workshop-media-caption { margin-top: 0.4rem; color: var(--gray); font-size: 0.96rem; }

/* Sidebar: quick info card styles */
.sidebar { display: none; }
@media (min-width: 980px) {
  .sidebar { display: block; align-self: flex-start; min-width: 300px; max-width: 360px; padding: 1rem; }
  .sidebar-card { background: #fff; border-radius: 16px; padding: 1.25rem; border: 1px solid rgba(21,87,153,0.08); box-shadow: 0 10px 30px rgba(21,87,153,0.04); }
  .sidebar-card .quick-info-inner { background: #fff; border-radius: 12px; padding: 0.9rem; border: 1px solid var(--border); }
  .sidebar-title { font-size: 1.25rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 0.8rem 0; }
  .sidebar-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
  .sidebar-list li { margin-bottom: 0.65rem; color: var(--text); font-size: 0.98rem; }
  .sidebar-list a { color: var(--text); font-weight: 600; }
  .sidebar .email { color: #6b7f8c; font-weight: 600; }
  .sidebar-btn { display: block; width: 100%; text-align: left; background: var(--accent); color: #fff; font-weight: 800; padding: 0.9rem 1.2rem; border-radius: 999px; text-decoration: none; margin: 0.6rem 0; box-shadow: 0 6px 18px rgba(21,87,153,0.08); font-size: 1rem; }
  .sidebar-card .quick-line { color: var(--gray); font-weight: 600; }
  .sidebar-card .quick-line .email { color: #6b7f8c; font-weight: 700; margin-right: 0.4rem; }
  .sidebar-btn:hover, .sidebar-btn:focus { background: var(--accent-dark); }
  .sidebar-note { color: var(--text); margin-top: 0.8rem; font-size: 0.95rem; }
  .sidebar-note strong { color: var(--accent-dark); font-weight: 800; }
}
@media (max-width: 979px) {
  #sidebar-mobile { display: block; background: #fff; border: 1px solid rgba(21,87,153,0.06); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(21,87,153,0.04); }
  #sidebar-mobile .sidebar-btn { width: 100%; display: block; }
}

/* Social link icons used in the sidebar */
.social-links { display:flex; gap:0.6rem; align-items:center; }
.social-links a { color:var(--text); display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:8px; background:transparent; text-decoration:none; transition:background .12s, color .12s; }
.social-links a:hover { background: rgba(21,87,153,0.06); color: var(--accent); }
.social-icon { width:26px; height:26px; display:block; }

/* Glyph-only social icons: colored rounded background + centered white glyph */
.sidebar .social-item { display:flex; flex-direction:column; align-items:center; gap:0.35rem; text-align:center; }
.sidebar .social-link { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:8px; background:transparent; }
.sidebar .social-link svg, .sidebar .social-link img { width:26px; height:26px; display:block; }
.sidebar .social-label { font-size:0.95rem; color:var(--text); max-width:140px; }

/* Sidebar social labels (icon above text) */
.sidebar-list a span { display: block; font-size: 0.95rem; color: var(--text); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.contact-list li { margin-bottom: 0.45em; color: var(--text); }
.contact-list .label { color: var(--gray); margin-right: 0.4em; }
.contact-form-placeholder { background: var(--sand); border-radius: var(--radius); padding: 1.1rem; text-align: center; }

/* Footer */
footer { background: #000; border-top: 1px solid #222; color: #fff; text-align: center; font-size: 0.9rem; padding: 0.8rem 0; margin-top: auto; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: var(--content-width); margin: 0 auto; padding: 0 0.8rem; }
.footer-col { flex: 1 1 200px; margin: 0.3rem; }
.footer-col h3 { margin-bottom: 0.5em; color: #fff; }
.footer-col a { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0.2rem 0 0 0; }
footer ul li { margin: 0.25rem 0; }

@media (max-width: 600px) {
  nav { padding: 0.5rem 0.9rem; }
  .hero-frame::before { width: 125vw; height: 90%; top: 0; filter: blur(16px); }
  .hero-frame::after { width: 96vw; height: 180px; top: 10px; filter: blur(14px); }
  #home { padding: 2.6rem 1.1rem; margin-top: 1.2rem; }
  .layout { padding: 1.2rem 0.9rem 2rem; }
  .gallery-item img { aspect-ratio: 3 / 2; }
}
