/* ============================================================
   alarmudenbinding.dk — style.css
   Fonts: Fraunces (serif/display) + DM Sans (body)
   Farver: Teal som primær (#0F6E56), hvid/grå baggrunde
   ============================================================ */

/* ---- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #0F6E56;
  --green-light: #E1F5EE;
  --green-mid:   #9FE1CB;
  --green-dark:  #085041;
  --red-light:   #FCEBEB;
  --red-text:    #A32D2D;
  --gray-bg:     #F7F6F3;
  --border:      rgba(0,0,0,0.10);
  --border-med:  rgba(0,0,0,0.18);
  --text:        #1a1a18;
  --text-muted:  #5f5e5a;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --font-serif:  'Fraunces', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --max-w:       1100px;
  --section-pad: 4rem 2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---- Typography ------------------------------------------ */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: 18px; margin-bottom: 0.5rem; }
h1 em { font-style: italic; color: var(--green); }
p + p { margin-top: 0.75rem; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ---- Buttons --------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--green-light);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; color: var(--green-light); }

/* Override for block buttons in forms */
button.btn-primary.btn-block {
  padding: 3px 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  height: auto !important;
  min-height: auto !important;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-med);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--gray-bg); text-decoration: none; }

.btn-block { display: block; width: 100%; text-align: center; padding: 4px 8px !important; }
.btn-primary.btn-block { padding: 4px 8px !important; font-size: 12px; line-height: 1.2; }

/* ---- Navigation ------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-logo .nav-logo-tld { color: var(--text-muted); font-size: 13px; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-mid); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--text); }
.mobile-cta {
  background: var(--green);
  color: var(--green-light) !important;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
}

/* ---- Hero ------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 3.5rem 2.5rem 3.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-right {
  padding: 2.5rem 2rem;
  background: var(--gray-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ---- Myndigheds-bar -------------------------------------- */
.myndighed-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
}

.myndighed-badge {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-mid);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.myndighed-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.myndighed-text strong { color: var(--text); font-weight: 500; }

/* ---- Sections -------------------------------------------- */
.section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.section-alt { background: var(--gray-bg); }

/* ---- Produkter -------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.15s;
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(15, 110, 86, 0.12);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  padding: 1.25rem 1.5rem 0.5rem;
  color: var(--green);
  font-size: 16px;
}

.product-card p {
  padding: 0 1.5rem;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-card p:last-child {
  padding-bottom: 1.5rem;
}

.product-seo {
  font-style: italic;
  font-size: 12px !important;
}

/* ---- Sammenligning --------------------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.compare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.compare-card.featured { border: 2px solid var(--green); }

.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.compare-title { font-size: 15px; font-weight: 500; }

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.badge-bad { background: var(--red-light); color: var(--red-text); }
.badge-good { background: var(--green-light); color: var(--green-dark); }

.compare-rows { display: flex; flex-direction: column; }
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-key { color: var(--text-muted); }
.compare-val { font-weight: 500; }
.compare-val.bad { color: var(--red-text); }
.compare-val.good { color: var(--green); }

/* ---- Kalkulator ------------------------------------------ */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.slider-row { margin-bottom: 1.5rem; }
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.slider-header label { font-size: 14px; color: var(--text-muted); }
.slider-val { font-size: 14px; font-weight: 500; }

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 4px;
  cursor: pointer;
}

.calc-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-row { display: flex; justify-content: space-between; align-items: center; }
.result-label { font-size: 13px; color: var(--text-muted); }
.result-num { font-size: 16px; font-weight: 500; }
.result-bad { color: var(--red-text); }
.result-divider { border: none; border-top: 1px solid var(--border); }

.result-savings { padding: 0.5rem 0; }
.savings-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.savings-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

/* ---- Ajax features --------------------------------------- */
.ajax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ajax-text h2 { margin-bottom: 1rem; }
.ajax-text p { font-size: 15px; color: var(--text-muted); }

.ajax-features { display: flex; flex-direction: column; gap: 1.25rem; }

.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { color: var(--green); font-size: 8px; margin-top: 8px; flex-shrink: 0; }
.feature-title { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.feature-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---- Steps ----------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--green-mid);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Upload/kontakt -------------------------------------- */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.upload-left h2 { margin: 0.5rem 0 1rem; }
.upload-left p { font-size: 15px; color: var(--text-muted); }

.upload-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.upload-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 500;
}

.upload-form-wrap {}

.upload-form {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border-med);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.10);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border-med);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.file-label:hover { border-color: var(--green); background: var(--green-light); }
.file-icon { font-size: 14px; color: var(--text-muted); }
.file-text { font-size: 13px; color: var(--text-muted); text-align: center; }
.file-label input[type="file"] { display: none; }

.form-check {
  display: flex;
  align-items: flex-start;
}

.check-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.25rem;
}

.form-success {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.success-icon { font-size: 36px; color: var(--green); margin-bottom: 0.75rem; }
.form-success h3 { font-family: var(--font-serif); font-weight: 400; margin-bottom: 0.5rem; }
.form-success p { font-size: 14px; color: var(--text-muted); }

.form-error {
  background: var(--red-light);
  border: 1px solid var(--red-text);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--red-text);
  font-size: 14px;
}

/* ---- Om sektion ------------------------------------------ */
.om-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--gray-bg);
  padding: 2rem;
}

.om-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.om-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.om-text p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.om-text p + p { margin-top: 4px; }
.om-text strong { color: var(--text); font-weight: 500; }

/* ---- Ressourcer sektion ---------------------------------- */
.resources-section {
  padding: 4rem 2rem;
  background: var(--gray-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.15s;
}

.resource-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(15, 110, 86, 0.12);
}

.resource-card h3 {
  color: var(--green);
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.resource-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resource-card a {
  color: var(--green);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.resource-card a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ---- Footer ---------------------------------------------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: var(--text-muted); font-size: 12px; }
.footer a:hover { color: var(--text); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
  .hero-right { padding: 2rem 1.5rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .ajax-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .myndighed-bar { flex-direction: column; gap: 0.75rem; padding: 1.25rem 1.5rem; }

  .section { padding: 2.5rem 1.5rem; }
  .resources-section { padding: 2.5rem 1.5rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .products-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
}
