/*
Theme Name: HjælpNær
Author: HjælpNær
Description: Custom WordPress theme converted from the HjælpNær HTML website.
Version: 1.0.0
Text Domain: hjaelpnaer
*/

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --sand: #F5EFE4; --sand-dark: #E8DDC8;
    --clay: #C17A52; --clay-light: #E09A72; --clay-dark: #8A4F2C;
    --forest: #2E5040; --forest-light: #4A7A62; --forest-pale: #EAF2EC;
    --ink: #1C2019; --muted: #6B6B5E; --white: #FDFAF6;
    --border: rgba(28,32,25,0.12);
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--ink); font-size: 17px; line-height: 1.6; overflow-x: hidden; }

  /* NAV */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 3rem; background: var(--forest); }
  .nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); text-decoration: none; font-weight: 600; }
  .nav-logo span { color: var(--clay-light); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
  .nav-links a:hover { color: var(--white); }
  .nav-links li:not(:last-child) { display: none; }
  .nav-cta { background: var(--clay) !important; color: var(--white) !important; padding: 0.55rem 1.4rem !important; border-radius: 100px; font-weight: 500 !important; transition: background 0.2s !important; }
  .nav-cta:hover { background: var(--clay-light) !important; }

  /* HERO */
  .hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(193,122,82,0.12) 0%, transparent 70%); pointer-events: none; }
  .hero-left { display: flex; flex-direction: column; justify-content: center; padding: 8rem 4rem 6rem 6rem; position: relative; z-index: 2; }
  .hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--forest-pale); color: var(--forest); border: 1px solid rgba(46,80,64,0.2); border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2rem; width: fit-content; }
  .hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
  h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.1; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
  h1 em { font-style: italic; color: var(--clay); }
  .hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 440px; line-height: 1.7; margin-bottom: 3rem; font-weight: 300; }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary { background: var(--forest); color: var(--white); padding: 0.9rem 2rem; border-radius: 100px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; display: inline-block; }
  .btn-primary:hover { background: var(--forest-light); transform: translateY(-1px); }
  .btn-secondary { background: transparent; color: var(--ink); padding: 0.9rem 2rem; border-radius: 100px; text-decoration: none; font-weight: 400; font-size: 0.95rem; border: 1.5px solid var(--border); transition: all 0.2s; display: inline-block; }
  .btn-secondary:hover { border-color: var(--ink); }
  .hero-right { display: flex; align-items: center; justify-content: center; padding: 8rem 5rem 6rem 2rem; position: relative; z-index: 2; }
  .hero-card-stack { position: relative; width: 340px; height: 420px; }
  .hero-card { position: absolute; background: var(--white); border-radius: 20px; padding: 1.8rem; border: 1px solid var(--border); box-shadow: 0 8px 40px rgba(28,32,25,0.08); transition: transform 0.3s; }
  .hero-card:nth-child(1) { width: 280px; top: 0; right: 0; transform: rotate(4deg); }
  .hero-card:nth-child(2) { width: 300px; top: 60px; left: 0; transform: rotate(-2deg); }
  .hero-card:nth-child(3) { width: 270px; bottom: 0; right: 20px; transform: rotate(1deg); }
  .hero-card-stack:hover .hero-card:nth-child(1) { transform: rotate(6deg) translateY(-4px); }
  .hero-card-stack:hover .hero-card:nth-child(2) { transform: rotate(-3deg) translateY(-6px); }
  .hero-card-stack:hover .hero-card:nth-child(3) { transform: rotate(2deg) translateY(-4px); }
  .card-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
  .card-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
  .card-task { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.5; }
  .card-tag { display: inline-block; margin-top: 0.8rem; background: var(--forest-pale); color: var(--forest); font-size: 0.72rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase; }
  .card-tag.clay { background: rgba(193,122,82,0.12); color: var(--clay-dark); }

  /* TRUST STRIP */
  .trust-strip { background: var(--forest); color: var(--white); padding: 1.2rem 6rem; display: flex; align-items: center; gap: 4rem; overflow-x: auto; }
  .trust-item { display: flex; align-items: center; gap: 0.7rem; white-space: nowrap; font-size: 0.85rem; opacity: 0.9; font-weight: 300; }

  /* SHARED */
  section { padding: 7rem 6rem; }
  .section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
  h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
  h2 em { font-style: italic; color: var(--clay); }

  /* FOR WHOM */
  .for-whom { background: var(--white); }
  .for-whom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 4rem; }
  .audience-card { background: var(--sand); border-radius: 24px; padding: 3rem; border: 1px solid var(--border); }
  .audience-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
  .audience-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; }
  .audience-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 300; }
  .audience-list { list-style: none; }
  .audience-list li { padding: 0.5rem 0; font-size: 0.9rem; font-weight: 300; display: flex; align-items: center; gap: 0.7rem; border-bottom: 1px solid var(--border); }
  .audience-list li:last-child { border-bottom: none; }
  .audience-list li::before { content: '→'; color: var(--clay); font-weight: 500; flex-shrink: 0; }

  /* SERVICES */
  .services { background: var(--sand); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
  .service-card { background: var(--white); border-radius: 18px; padding: 2rem; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
  .service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(28,32,25,0.1); }
  .service-emoji { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
  .service-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
  .service-desc { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.6; }
  .service-badge { display: inline-block; margin-top: 0.8rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; }
  .tag-all { background: var(--sand-dark); color: var(--muted); }
  .tag-elder { background: var(--forest-pale); color: var(--forest); }
  .tag-family { background: rgba(193,122,82,0.12); color: var(--clay-dark); }
  .no-go { margin-top: 2rem; font-size: 0.82rem; color: var(--muted); font-weight: 300; }

  /* TRUST */
  .trust-section { background: var(--forest); color: var(--white); }
  .trust-section .section-label { color: var(--clay-light); }
  .trust-section h2 { color: var(--white); }
  .trust-section h2 em { color: var(--clay-light); }
  .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; }
  .trust-col-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; color: rgba(255,255,255,0.7); font-style: italic; }
  .trust-item-row { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .trust-item-row:last-child { border-bottom: none; }
  .trust-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; color: var(--clay-light); line-height: 1; min-width: 36px; font-style: italic; }
  .trust-text { font-size: 0.9rem; font-weight: 300; line-height: 1.6; opacity: 0.85; }

  /* PRICING */
  .pricing { background: var(--white); }
  .pricing-header { max-width: 540px; margin-bottom: 4rem; }
  .pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .price-card { border-radius: 20px; padding: 2.5rem; text-align: center; border: 1.5px solid var(--border); background: var(--sand); }
  .price-card.highlight { border-color: var(--forest); background: var(--forest-pale); }
  .price-role { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
  .price-big { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 600; line-height: 1; margin-bottom: 0.3rem; }
  .price-card.highlight .price-big { color: var(--forest); }
  .price-unit { font-size: 0.85rem; color: var(--muted); font-weight: 300; margin-bottom: 1.5rem; }
  .price-note { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.5; }

  /* HOW */
  .how { background: var(--sand); }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
  .step { position: relative; }
  .step::after { content: '→'; position: absolute; top: 1.2rem; right: -1.1rem; color: var(--clay); font-size: 1.1rem; }
  .step:last-child::after { display: none; }
  .step-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 400; font-style: italic; color: var(--clay); opacity: 0.5; line-height: 1; margin-bottom: 1rem; }
  .step-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
  .step-desc { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.6; }

  /* TESTIMONIALS */
  .testimonials { background: var(--white); }
  .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
  .testi { background: var(--sand); border-radius: 18px; padding: 2rem; border: 1px solid var(--border); }
  .testi-stars { color: var(--clay); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1rem; }
  .testi-text { font-size: 0.9rem; color: var(--ink); line-height: 1.7; margin-bottom: 1.5rem; font-weight: 300; font-style: italic; }
  .testi-author { display: flex; align-items: center; gap: 0.8rem; }
  .testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
  .av-forest { background: var(--forest-pale); color: var(--forest); }
  .av-clay { background: rgba(193,122,82,0.12); color: var(--clay-dark); }
  .av-sand { background: var(--sand-dark); color: var(--muted); }
  .testi-name { font-size: 0.85rem; font-weight: 600; }
  .testi-role { font-size: 0.75rem; color: var(--muted); }

  /* FAQ */
  .faq { background: var(--sand); }
  .faq-inner { max-width: 720px; margin-top: 3rem; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-q { width: 100%; background: none; border: none; color: var(--ink); padding: 1.4rem 0; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color 0.2s; }
  .faq-q:hover { color: var(--forest); }
  .faq-icon { color: var(--clay); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.3s; }
  .faq-a { font-size: 0.88rem; color: var(--muted); font-weight: 300; line-height: 1.7; padding-bottom: 1.4rem; display: none; }
  .faq-item.open .faq-a { display: block; }
  .faq-item.open .faq-icon { transform: rotate(45deg); }

  /* CTA */
  .cta-section { background: var(--clay); color: var(--white); text-align: center; padding: 8rem 6rem; }
  .cta-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
  .cta-section h2 em { color: rgba(255,255,255,0.75); }
  .cta-sub { font-size: 1.05rem; opacity: 0.85; font-weight: 300; max-width: 500px; margin: 0 auto 3rem; line-height: 1.7; }
  .cta-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
  .btn-white { background: var(--white); color: var(--clay-dark); padding: 1rem 2.2rem; border-radius: 100px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; display: inline-block; }
  .btn-white:hover { opacity: 0.9; transform: translateY(-1px); }
  .btn-outline-white { background: transparent; color: var(--white); padding: 1rem 2.2rem; border-radius: 100px; text-decoration: none; font-weight: 400; font-size: 0.95rem; border: 1.5px solid rgba(255,255,255,0.5); transition: all 0.2s; display: inline-block; }
  .btn-outline-white:hover { border-color: var(--white); }

  /* FOOTER */
  footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 3rem 6rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; font-weight: 300; flex-wrap: wrap; gap: 1.5rem; }
  .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--white); }
  .footer-logo span { color: var(--clay-light); }
  .footer-tagline { margin-top: 0.3rem; font-size: 0.75rem; }
  .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
  .footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--white); }

  /* BOOKING */
  .book { background: var(--sand); }
  .book-wrap { max-width: 760px; margin-top: 2.5rem; }
  .tabs { display: inline-flex; background: var(--sand-dark); border-radius: 100px; padding: 4px; margin-bottom: 2rem; }
  .tab { border: none; background: none; font: inherit; font-size: 0.9rem; font-weight: 500; padding: 0.6rem 1.4rem; border-radius: 100px; cursor: pointer; color: var(--muted); }
  .tab[aria-selected="true"] { background: var(--forest); color: var(--white); }
  .bform { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .bform[hidden] { display: none; }
  .field { display: flex; flex-direction: column; gap: 0.35rem; }
  .field.full { grid-column: 1 / -1; }
  .field label, .field legend { font-size: 0.82rem; font-weight: 500; }
  .field input, .field select, .field textarea { font: inherit; font-size: 0.95rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
  .field input:focus, .field select:focus, .field textarea:focus, .tab:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
  .field textarea { min-height: 90px; resize: vertical; }
  .checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; border: none; }
  .checks label { font-weight: 300; display: flex; gap: 0.4rem; align-items: center; }
  .checks input, .consent input { width: auto; }
  .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; font-weight: 300; }
  .consent a { color: var(--forest); }
  .estimate { grid-column: 1 / -1; background: var(--forest-pale); border-radius: 12px; padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--forest); }
  .bform button[type=submit] { grid-column: 1 / -1; justify-self: start; border: none; cursor: pointer; font: inherit; font-weight: 500; }
  .form-msg { grid-column: 1 / -1; font-size: 0.9rem; }
  .form-msg.ok { color: var(--forest); } .form-msg.err { color: #9b2c2c; }
  @media (max-width: 640px) { .bform { grid-template-columns: 1fr; padding: 1.4rem; } }

  /* ANIM */
  @keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
  .hero-left > * { animation: fadeUp 0.7s ease forwards; opacity: 0; }
  .hero-left > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-left > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-left > *:nth-child(3) { animation-delay: 0.4s; }
  .hero-left > *:nth-child(4) { animation-delay: 0.55s; }
  .hero-right { animation: fadeUp 0.9s 0.4s ease forwards; opacity: 0; }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    nav { padding: 1.2rem 2rem; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 8rem 3rem 3rem; }
    .hero-right { padding: 2rem 3rem 5rem; }
    .for-whom-grid, .trust-grid { grid-template-columns: 1fr; }
    .services-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
    .pricing-table { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    section { padding: 5rem 3rem; }
    .trust-strip { padding: 1.2rem 3rem; }
    footer { flex-direction: column; text-align: center; }
  }
  @media (max-width: 640px) {
    .services-grid, .testi-grid, .steps { grid-template-columns: 1fr; }
    section { padding: 4rem 1.5rem; }
    .cta-section { padding: 5rem 1.5rem; }
    .step::after { display: none; }
  }
