/* =========================================================================
   home.css — Modern design för Dahlbergs Plåts förstasida
   Fristående från style.css / modern.css. Används endast av index.html.
   ========================================================================= */

:root {
  --bg:         #FBFAF6;   /* varm off-white */
  --surface:    #FFFFFF;
  --surface-2:  #F4F0E8;   /* ljus sektionsbakgrund */
  --ink:        #1A1A1A;
  --ink-2:      #4A4A4A;
  --ink-3:      #7a7a7a;
  --line:       #E4DED2;
  --accent:     #B44228;   /* rostig koppar-röd */
  --accent-2:   #8C3220;
  --dark:       #1F1D1A;
  --dark-2:     #2B2823;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 14px 40px rgba(0,0,0,0.12);
  --ease:       cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'EB Garamond', Garamond, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-2); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--accent); }

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: var(--ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-cta strong {
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}
.header-cta:hover strong { color: var(--accent); }

/* ========== Hero ========== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg,
      rgba(16,14,12,0.82) 0%,
      rgba(16,14,12,0.55) 45%,
      rgba(16,14,12,0.15) 100%);
}
.hero-overlay {
  padding: 140px 0 120px;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 2px;
  margin-bottom: 26px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.95);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}
.btn-outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* ========== Intro ========== */
.intro { padding: 110px 0 100px; }
.intro .lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

/* ========== Facts ========== */
.facts { padding: 80px 0; }
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fact {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.fact-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.fact-label {
  display: block;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ========== About split ========== */
.about { padding: 20px 0 110px; }
.split-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 72px;
  align-items: start;
}
.split-grid h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.25rem);
  margin-bottom: 24px;
}
.split-grid h3 {
  font-size: 1.28rem;
  margin: 36px 0 14px;
  font-weight: 500;
}
.split-grid p {
  color: var(--ink-2);
  margin-bottom: 1.1em;
}
.about-aside {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.about-aside::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: var(--accent);
}
.about-aside h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.35rem;
}

/* ========== Work grid ========== */
.work { padding: 90px 0 100px; background: var(--surface-2); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 42px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
}
.section-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.section-link:hover { gap: 12px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.work-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.work-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-item:hover .work-thumb img { transform: scale(1.04); }
.work-item span {
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ========== CTA band ========== */
.cta-band {
  padding: 80px 0;
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin-bottom: 12px;
  color: #fff;
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== Footer ========== */
.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
.footer-logo {
  width: 82px;
  height: auto;
  opacity: 0.92;
  margin-bottom: 18px;
}
.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer h4 + p { margin-bottom: 24px; }
.site-footer p { line-height: 1.7; font-size: 0.94rem; margin: 0; }
.site-footer p + h4 { margin-top: 10px; }
.site-footer a {
  color: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.site-footer a:hover {
  border-bottom-color: rgba(255,255,255,0.8);
  color: #fff;
}
.footer-meta {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .header-wrap {
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-nav {
    order: 3;
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .header-cta { margin-left: auto; }

  .facts .wrap { grid-template-columns: 1fr; gap: 14px; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .hero-overlay { padding: 100px 0 80px; min-height: 460px; }
  .intro { padding: 70px 0 70px; }
  .facts { padding: 60px 0; }
  .about { padding: 10px 0 80px; }
  .work { padding: 70px 0 80px; }
  .cta-band { padding: 60px 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .header-wrap { min-height: 64px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-sub { display: none; }
  .header-cta { font-size: 0.7rem; }
  .header-cta strong { font-size: 1.02rem; }

  .site-nav { gap: 16px; font-size: 0.92rem; }

  .hero h1 { max-width: none; }
  .hero-overlay { padding: 70px 0 60px; min-height: 380px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .intro .lead { text-align: left; }
  .about-aside { padding: 28px 22px; }
  .about-aside::before { left: 22px; right: 22px; }

  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

/* =========================================================================
   Sub-pages: Referenser, Kontakta oss, inlägg
   ========================================================================= */

/* ---- Page hero (compact, dark banner with title) ---- */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 80px 0 64px;
  border-bottom: 3px solid var(--accent);
  position: relative;
}
.page-hero .eyebrow {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.28);
  margin-bottom: 22px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.page-hero .page-lead {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin: 0;
}

/* ---- Generic page content container ---- */
.page-content { padding: 80px 0 100px; }
.page-content p { color: var(--ink-2); }

/* ---- Contact page: two-column card + map ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  position: relative;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: var(--accent);
}
.contact-card h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.contact-card .contact-intro {
  color: var(--ink-2);
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
  font-weight: 600;
}
.contact-value { font-size: 1.02rem; color: var(--ink); }
.contact-value a { border-bottom: 1px solid transparent; }
.contact-value a:hover { border-bottom-color: var(--accent); }

.contact-aside h3 {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 22px 0 6px;
  color: var(--ink);
}
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside p { font-size: 0.98rem; margin: 0 0 0.8em; }

.map-container {
  border-radius: 6px;
  overflow: hidden;
  background: #ddd;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* ---- Referenser page: work grid on its own ---- */
.references-grid { padding-bottom: 40px; }

/* ---- Post content (inlägg) ---- */
.post-content {
  max-width: 820px;
  margin: 0 auto;
}
.post-content p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 1.25em;
}
.post-content figure.wp-caption {
  display: block;
  margin: 40px auto;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  width: 100% !important;
  transition: box-shadow 0.25s var(--ease);
}
.post-content figure.wp-caption:hover { box-shadow: var(--shadow-md); }
.post-content figure.wp-caption img {
  width: 100%;
  height: auto;
  display: block;
}
.post-content figure.wp-caption .wp-caption-text {
  padding: 14px 20px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--ink-2);
  text-align: left;
  margin: 0;
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
}
.post-content img:not(.wp-caption img) {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

/* ---- Related references below a post ---- */
.related-work {
  padding: 70px 0 90px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.related-work h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 28px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 60px 0 48px; }
  .page-content { padding: 60px 0 80px; }
  .related-work { padding: 60px 0 80px; }
  .contact-card { padding: 28px 24px; }
  .contact-card::before { left: 24px; right: 24px; }
  .map-container iframe { height: 420px; }
}

@media (max-width: 560px) {
  .page-hero { padding: 50px 0 40px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .post-content figure.wp-caption .wp-caption-text { padding: 12px 16px; font-size: 0.92rem; }
}
