/*
Theme Name: Praxisværkstedet
Theme URI: https://praxisvaerkstedet.dk
Author: Praxisværkstedet
Author URI: https://praxisvaerkstedet.dk
Description: Hjemmeside for Praxisværkstedet. Projektbaseret undervisning der rammer virkeligheden.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: praxisvaerkstedet
*/

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --clay: #B8553A;
  --clay-light: #D4896F;
  --clay-dark: #8C3D28;
  --warm-white: #FAF6F1;
  --warm-cream: #F2EBE1;
  --bark: #3A2E28;
  --bark-light: #5C4A3F;
  --sage: #7A8B6F;
  --sage-light: #A4B396;
  --sage-pale: #E8EDE4;
  --sand: #D6C9B6;
  --text: #2D2420;
  --text-light: #6B5D53;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  background: transparent;
}

.site-nav.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(58,46,40,0.06);
  padding: 0.8rem 2rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--bark-light);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--clay); }

.nav-links .nav-cta {
  background: var(--clay);
  color: var(--warm-white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-links .nav-cta:hover { background: var(--clay-dark); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bark);
  transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--clay);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 85, 58, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--sand);
}

.btn-outline:hover {
  border-color: var(--clay-light);
  color: var(--clay);
}

/* ============================================
   SECTION FOUNDATIONS
   ============================================ */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--bark);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, var(--sage-pale) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 40%; height: 60%;
  background: radial-gradient(ellipse at center, var(--warm-cream) 0%, transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-pale);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--bark);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero h1 em {
  color: var(--clay);
  font-style: italic;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-visual {
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
}

.hero-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(58,46,40,0.08), 0 4px 16px rgba(58,46,40,0.04);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -2px; left: 2rem; right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--sage));
  border-radius: 3px;
}

.hero-quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--bark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-quote-author {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-cream);
}

.hero-stat { text-align: center; }

.hero-stat-number {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--clay);
  display: block;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   PROBLEM / DARK SECTIONS
   ============================================ */
.section-dark {
  background: var(--bark);
  color: var(--warm-cream);
}

.section-dark .section-label { color: var(--clay-light); }
.section-dark .section-title { color: var(--warm-white); }
.section-dark .section-subtitle { color: var(--sand); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.problem-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.problem-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--clay-light);
  opacity: 0.6;
  margin-bottom: 0.8rem;
  display: block;
}

.problem-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--warm-white);
  margin-bottom: 0.8rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--sand);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   APPROACH
   ============================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.approach-text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

.approach-text p + p { margin-top: 1.2rem; }
.approach-text strong { color: var(--text); font-weight: 600; }

.phases { display: flex; flex-direction: column; }

.phase {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.phase:hover { background: var(--sage-pale); }

.phase-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.phase:hover .phase-num {
  background: var(--sage);
  color: white;
}

.phase-content h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bark);
  margin-bottom: 0.2rem;
}

.phase-content p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.phase-line {
  width: 2px; height: 16px;
  background: var(--sage-pale);
  margin-left: calc(1.5rem + 19px);
}

/* ============================================
   TILBUD
   ============================================ */
.section-cream { background: var(--warm-cream); }

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

.tilbud-card {
  background: white;
  border-radius: 14px;
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(58,46,40,0.05);
  transition: all 0.4s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.tilbud-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sand);
  transition: background 0.3s;
}

.tilbud-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(58,46,40,0.1);
  border-color: var(--clay-light);
}

.tilbud-card:hover::before { background: var(--clay); }

.tilbud-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.tilbud-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--bark);
  margin-bottom: 0.7rem;
}

.tilbud-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 300;
}

.tilbud-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
}

/* ============================================
   OM
   ============================================ */
.om-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  margin-top: 2rem;
  align-items: center;
}

.om-photo-wrapper { position: relative; }

.om-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--warm-cream);
  border-radius: 16px;
  overflow: hidden;
  object-fit: cover;
}

.om-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.om-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60%; height: 60%;
  border: 2px solid var(--sage-light);
  border-radius: 16px;
  z-index: -1;
}

.om-text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

.om-text p + p { margin-top: 1.2rem; }
.om-text strong { color: var(--text); font-weight: 600; }

.om-credentials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-cream);
  flex-wrap: wrap;
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}

.credential-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* ============================================
   KONTAKT
   ============================================ */
.section-dark.kontakt { text-align: center; }

.kontakt-subtitle {
  font-size: 1.1rem;
  color: var(--sand);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.kontakt-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.kontakt-item a {
  color: var(--warm-white);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s;
}

.kontakt-item a:hover { color: var(--clay-light); }

.kontakt-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bark-light);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--sand);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: auto; padding: 7rem 1.5rem 3rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .tilbud-grid { grid-template-columns: 1fr; }
  .om-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .kontakt-info { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .hero-stat-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-stat { text-align: left; display: flex; align-items: baseline; gap: 0.5rem; }
  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
}
