/*
Theme Name: Bygmester Hjordt
Theme URI: https://example.com/bygmester-hjordt
Author: Frederik Hjordt & AI
Author URI: https://example.com
Description: Let, hurtig og enkel WordPress-tema til håndværksfirmaer. Indeholder forside, undersider, projekter med prisfelt og kontaktformular.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bygmester-hjordt
Tags: responsive, custom-logo, custom-menu, blog, one-column
*/

:root{
  --primary:#8B6B45;    /* jordbrun – main */
  --secondary:#E5D0B5;  /* støvet beige – backgrounds / sections */
  --dark:#3E2E1E;       /* dyb mørkebrun – header/footer */
  --text:#1A1A1A;       /* mørk grå-sort – body text */
  --accent:#C8A45D;     /* messinggul – CTA/highlight */
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height:1.6;
  background:#fff;
}

.container{ width: min(1100px, 92%); margin: 0 auto; }
.btn{
  display:inline-block;
  padding:.8rem 1.2rem;
  background: var(--accent);
  color:#111; text-decoration:none; border-radius:.75rem; font-weight:600;
  transition: transform .06s ease-in-out, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.badge{ display:inline-block; padding:.25rem .6rem; background:var(--secondary); border-radius:999px; font-size:.85rem; }

.site-header{ background: var(--dark); color: #fff; position: sticky; top: 0; z-index:99; }
.site-header a{ color:#fff; text-decoration:none; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: .9rem 0; }
.brand{ display:flex; align-items:center; gap:.75rem; }
.brand .logo{ width:42px; height:42px; border-radius:.6rem; background: var(--secondary); display:flex; align-items:center; justify-content:center; color:#111; font-weight:800; }
.primary-nav{ display:flex; gap:1rem; flex-wrap:wrap; }
.primary-nav a{ opacity:.9; }
.primary-nav a:hover{ opacity:1; text-decoration:underline; }

.hero{
  background: linear-gradient(180deg, rgba(62,46,30,.96), rgba(62,46,30,.82)), url('https://images.pexels.com/photos/11427524/pexels-photo-11427524.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  color:#fff;
  padding: clamp(60px, 12vw, 140px) 0;
}
.hero h1{ font-size: clamp(28px, 5vw, 56px); line-height:1.1; margin:0 0 .8rem; }
.hero p{ max-width: 60ch; opacity:.95; margin: 0 0 1.2rem; }

.section{ padding: clamp(40px, 8vw, 90px) 0; }
.section.alt{ background: var(--secondary); }
.section h2{ font-size: clamp(24px, 4.2vw, 42px); margin:0 0 .7rem; }
.section .lead{ opacity:.9; max-width:65ch; }

.grid{ display:grid; gap: 1rem; }
.grid.cols-3{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card{
  background:#fff; border-radius:1rem; padding:1rem;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.card h3{ margin:.2rem 0; }
.card p{ margin:.4rem 0 0; }

.projects{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; }
.project{
  background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:1rem; overflow:hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
.project img{ width:100%; height:200px; object-fit:cover; display:block; }
.project .p-body{ padding: .8rem 1rem; }
.price{ font-weight:700; color: var(--primary); }

.site-footer{ background: var(--dark); color:#fff; padding: 40px 0; }
.site-footer a{ color:#fff; }

input, textarea{ width:100%; padding:.9rem 1rem; border-radius:.8rem; border:1px solid rgba(0,0,0,.12); }
form .row{ display:grid; grid-template-columns:1fr 1fr; gap: .8rem; }
form .row > * { min-width:0; }
@media (max-width:720px){ form .row{ grid-template-columns:1fr; } }
