/* =========================================================
   TØMRER LILJEGREN — Stylesheet
   Nordisk håndværk: linnedhvid + skovgrøn + eg
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FAFAF7;
  --panel: #F0EBE1;
  --panel-warm: #E8DFCF;
  --ink: #111111;
  --ink-muted: #5A5A5A;
  --line: #E1DACB;
  --green: #1F3A31;
  --green-hover: #2A5044;
  --oak: #A67C52;
  --oak-light: #C9A882;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(17,17,17,0.04);
  --shadow-md: 0 6px 24px rgba(17,17,17,0.08);

  --container: 1180px;
  --gutter: 24px;

  --f-display: "Archivo", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px var(--gutter);
    border-top: 1px solid var(--line);
  }
  .nav-links a:first-child { border-top: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 span {
  color: var(--green);
  display: block;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta div span:first-child {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}
.hero-meta div span:last-child {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.hero-scene {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  padding: 24px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-scene svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-scene { aspect-ratio: 5 / 4; }
}
@media (max-width: 480px) {
  .hero-meta { flex-wrap: wrap; gap: 20px 32px; }
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head p { font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--oak-light);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-radius: 4px;
  margin-bottom: 20px;
  color: var(--green);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin: 0; }

/* ---------- About preview ---------- */
.about-preview {
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-preview .lead { font-size: 1.1rem; color: var(--ink); }
.about-visual {
  background: var(--panel-warm);
  border-radius: 8px;
  padding: 32px;
  border-left: 4px solid var(--oak);
}
.about-visual blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-visual cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .about-preview .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Contact form ---------- */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info .lead { font-size: 1.05rem; }
.contact-details {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contact-details a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
  color: var(--ink);
}
.contact-details a:hover { color: var(--green); }
.contact-details svg { width: 20px; height: 20px; color: var(--green); }

form.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--green);
  background: #fff;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* honeypot - visually hidden */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  margin-bottom: 16px;
  display: none;
}
.form-status.success {
  display: block;
  background: #E8F0EC;
  color: var(--green);
  border: 1px solid #C4D9CE;
}
.form-status.error {
  display: block;
  background: #FBEBE8;
  color: #8B2A1C;
  border: 1px solid #F0C4BC;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  form.contact-form { padding: 24px; }
}

/* ---------- Om Os page ---------- */
.page-hero {
  padding: 64px 0 40px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--green); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; max-width: 60ch; }

.about-body {
  padding: 72px 0;
}
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-content h2 { margin-top: 32px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 1.05rem; color: var(--ink); }

.about-sidebar {
  position: sticky;
  top: 100px;
  background: var(--panel);
  padding: 28px;
  border-radius: 6px;
  border-left: 4px solid var(--green);
}
.about-sidebar h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.about-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.about-sidebar li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.94rem;
}
.about-sidebar li:first-child { border-top: 0; }
.about-sidebar li span:last-child {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-sidebar { position: static; }
}

/* ---------- Kontakt page ---------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-methods {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.contact-method {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.contact-method:hover { border-color: var(--oak-light); }
.contact-method-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.contact-method-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-method-hint {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* phone reveal button */
.phone-reveal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.phone-reveal:hover { background: var(--green-hover); }
.phone-reveal:active { transform: translateY(1px); }
.phone-reveal svg { width: 18px; height: 18px; }

.phone-number {
  display: none;
}
.phone-number.revealed {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  animation: reveal 0.35s ease;
}
.phone-number a {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--green);
  letter-spacing: 0.01em;
}
.phone-copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.phone-copy-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.phone-copy-btn.copied {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9C4B8;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer-brand + p { color: #C9C4B8; max-width: 40ch; }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: #C9C4B8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8A8577;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

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