/*
Theme Name: Björkkulla Snickeri
Theme URI: https://www.bjorkkullasnickeri.se
Author: Björkkulla Snickeri
Description: Ett redigerbart WordPress blocktema för ett mindre snickeri med platsbyggda kök, garderober, förvaring och referenser.
Version: 1.9.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: bjorkkulla-snickeri
*/

:root {
  --bjorkkulla-ink: #17130f;
  --bjorkkulla-muted: #665d52;
  --bjorkkulla-paper: #fbf7ef;
  --bjorkkulla-soft: #f1e8dc;
  --bjorkkulla-line: rgba(23, 19, 15, 0.14);
  --bjorkkulla-bronze: #a77742;
  --bjorkkulla-deep: #211812;
  --bjorkkulla-sage: #566255;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bjorkkulla-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-underline-offset: 0.22em;
}

/* Refined display typography */
.wp-block-heading,
h1,
h2,
h3 {
  letter-spacing: -0.005em;
}

.has-hero-font-size {
  letter-spacing: -0.02em;
}

.has-x-large-font-size {
  letter-spacing: -0.015em;
}

.bjorkkulla-eyebrow {
  margin-bottom: 0.85rem;
  color: var(--bjorkkulla-bronze);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bjorkkulla-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--bjorkkulla-line);
  background: rgba(251, 247, 239, 0.96);
  backdrop-filter: blur(18px);
}

.bjorkkulla-brand {
  margin: 0;
  line-height: 0.95;
}

.bjorkkulla-brand a {
  color: var(--bjorkkulla-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 0.88;
  text-decoration: none;
}

.bjorkkulla-brand small {
  display: block;
  color: var(--bjorkkulla-bronze);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bjorkkulla-hero-panel {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.82)),
    radial-gradient(circle at 15% 15%, rgba(167, 119, 66, 0.14), transparent 34%);
}

.bjorkkulla-hero-copy {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.bjorkkulla-hero-media {
  min-height: clamp(520px, 72vw, 760px);
}

.bjorkkulla-hero-media figure {
  height: 100%;
  min-height: inherit;
  margin: 0;
}

.bjorkkulla-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bjorkkulla-image-frame img,
.bjorkkulla-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bjorkkulla-image-frame {
  overflow: hidden;
}

.bjorkkulla-image-frame.is-style-tall {
  aspect-ratio: 4 / 5;
}

.bjorkkulla-proof-row {
  border-top: 1px solid var(--bjorkkulla-line);
  border-bottom: 1px solid var(--bjorkkulla-line);
}

.bjorkkulla-proof-row {
  text-align: center;
}

.bjorkkulla-proof-row strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--bjorkkulla-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1;
}

.bjorkkulla-proof-row p {
  color: var(--bjorkkulla-muted);
}

.bjorkkulla-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.bjorkkulla-instagram-link svg {
  width: 1.18rem;
  height: 1.18rem;
  flex: 0 0 auto;
}

.bjorkkulla-instagram-link:hover {
  color: var(--bjorkkulla-bronze);
}

.bjorkkulla-top-contact {
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.bjorkkulla-top-contact p {
  margin: 0;
}

.bjorkkulla-contact-details {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.bjorkkulla-contact-details a {
  color: var(--bjorkkulla-paper);
  text-decoration: none;
}

.bjorkkulla-project-card {
  height: 100%;
}

.bjorkkulla-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.bjorkkulla-reference-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bjorkkulla-reference-card__image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, #ded1c0, #8c674c 48%, #2c2018);
}

.bjorkkulla-reference-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.bjorkkulla-reference-card:hover img {
  transform: scale(1.035);
}

.bjorkkulla-reference-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.bjorkkulla-reference-card p {
  margin: 0;
  color: var(--bjorkkulla-muted);
}

.bjorkkulla-small-link {
  display: inline-flex;
  margin-top: 2rem;
  border-bottom: 1px solid currentColor;
  color: var(--bjorkkulla-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.bjorkkulla-project-card .wp-block-post-featured-image,
.bjorkkulla-service-card .wp-block-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.bjorkkulla-project-card .wp-block-post-featured-image img,
.bjorkkulla-service-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.bjorkkulla-project-card:hover .wp-block-post-featured-image img,
.bjorkkulla-service-card:hover .wp-block-image img {
  transform: scale(1.035);
}

.bjorkkulla-service-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.bjorkkulla-portfolio-card .wp-block-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
}

.bjorkkulla-portfolio-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.bjorkkulla-portfolio-card:hover .wp-block-image img {
  transform: scale(1.035);
}

.bjorkkulla-portfolio-card .bjorkkulla-eyebrow {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}

.bjorkkulla-portfolio-card h3 {
  margin: 0 0 0.5rem;
}

.bjorkkulla-portfolio-card p {
  margin: 0;
  color: var(--bjorkkulla-muted);
}

.bjorkkulla-button a,
.wp-block-button__link {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.bjorkkulla-button a:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.bjorkkulla-statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
}

.bjorkkulla-statement::before {
  position: absolute;
  inset: 0;
  background: rgba(19, 13, 9, 0.55);
  content: "";
}

.bjorkkulla-statement > * {
  position: relative;
  z-index: 1;
}

.bjorkkulla-statement .bjorkkulla-eyebrow {
  color: #d8b285;
}

.bjorkkulla-statement h2 {
  max-width: 820px;
  color: var(--bjorkkulla-paper);
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .bjorkkulla-statement {
    background-attachment: scroll;
  }
}

.bjorkkulla-footer {
  background: var(--bjorkkulla-deep);
  color: var(--bjorkkulla-paper);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 700px) {
  .bjorkkulla-hero-copy {
    padding-top: 4rem;
  }

  .bjorkkulla-hero-media {
    min-height: 420px;
  }

  .bjorkkulla-reference-grid {
    grid-template-columns: 1fr;
  }
}
