/* ========================================
   Advokatfirmaet Wittenborn - Styles
   ======================================== */

:root {
  --navy: #14504f;
  --navy-light: #1a6362;
  --gold: #b8960c;
  --gold-light: #d4af37;
  --gold-muted: #c9a84c;
  --teal-dark: #0e3a3a;
  --teal: #1b6e6e;
  --teal-light: #237e7e;
  --cream: #faf8f5;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 58, 58, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 150, 12, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header.scrolled {
  background: rgba(14, 58, 58, 0.98);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 54px;
  width: auto;
  padding: 6px 12px;
  background: var(--white);
  border-radius: 5px;
  transition: opacity var(--transition);
}
.logo:hover .logo-img { opacity: 0.9; }

.nav { display: flex; gap: 8px; }

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0a2e2e 50%, var(--navy) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(27, 110, 110, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 150, 12, 0.06) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, transparent, rgba(27, 110, 110, 0.08));
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gold-muted);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(184, 150, 12, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-light {
  background: var(--cream);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 50px;
  color: rgba(255,255,255,0.7);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about-text p:first-child {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 12px;
}
.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ---- Specialer ---- */
.specialer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.speciale-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all var(--transition);
}
.speciale-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold-muted);
  transform: translateY(-2px);
}

.speciale-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gold-muted);
  font-family: var(--font-heading);
}

.speciale-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ---- Advokat ---- */
.advokat-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
}

.advokat-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold-muted);
}
.advokat-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}
.advokat-placeholder span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  opacity: 0.6;
}

.advokat-info h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.advokat-title {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.advokat-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.advokat-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
}
.advokat-contact-item:hover { color: var(--gold); }
.advokat-contact-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.advokat-cv { margin-bottom: 24px; }
.advokat-cv h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--gray-200);
  font-size: 0.95rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.year {
  font-weight: 700;
  color: var(--navy);
  margin-right: 8px;
}

.advokat-info > p {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.advokat-memberships {
  font-style: italic;
  color: var(--gray-500);
  font-size: 0.95rem !important;
}

/* ---- Forretningsbetingelser / Persondatapolitik ---- */
.terms-content {
  max-width: 850px;
  margin: 40px auto 0;
}

.terms-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}
.terms-item:last-child { border-bottom: none; }

.terms-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.terms-item p {
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.terms-item a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Klientoplysninger ---- */
.klient-content {
  max-width: 850px;
  margin: 40px auto 0;
}
.klient-content p {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

/* ---- Kontakt ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.kontakt-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.kontakt-info > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.kontakt-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kontakt-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-muted);
  margin-top: 2px;
}
.kontakt-item a {
  color: rgba(255,255,255,0.85);
}
.kontakt-item a:hover { color: var(--gold-muted); }
.kontakt-item p { margin: 0; color: rgba(255,255,255,0.85); }

.kontakt-bank {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 16px 20px;
}
.kontakt-bank p { margin: 0; color: rgba(255,255,255,0.8); }
.kontakt-bank strong { color: var(--gold-muted); }

/* ---- Footer ---- */
.footer {
  background: #0a2424;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}
.footer-desc { font-size: 0.9rem; max-width: 300px; }

.footer-links h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 4px 0;
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-muted); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .advokat-grid { grid-template-columns: 1fr; gap: 30px; }
  .advokat-placeholder { max-width: 280px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid rgba(184, 150, 12, 0.15);
  }
  .nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }

  .section { padding: 70px 0; }
  .section-title { font-size: 1.8rem; }

  .specialer-grid { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .advokat-contact { flex-direction: column; }
}
