﻿/* ===== GUIDEN FORSIDE — Nordic Field Manual ===== */

/* Topographic contour pattern */
.pg-hero-wrap {
  position: relative;
  overflow: hidden;
}
.pg-hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='80'%3E%3Cpath d='M0,25 Q55,12 110,25 T220,25' fill='none' stroke='%23F5F2EB' stroke-width='0.6'/%3E%3Cpath d='M0,45 Q55,32 110,45 T220,45' fill='none' stroke='%23F5F2EB' stroke-width='0.6'/%3E%3Cpath d='M0,65 Q55,52 110,65 T220,65' fill='none' stroke='%23F5F2EB' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 220px 80px;
  pointer-events: none;
}
.pg-hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196,122,43,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Stagger reveal animations */
@keyframes pgSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.pg-reveal-1 { animation: pgSlideUp 0.65s ease-out 0.1s both; }
.pg-reveal-2 { animation: pgSlideUp 0.65s ease-out 0.25s both; }
.pg-reveal-3 { animation: pgSlideUp 0.65s ease-out 0.4s both; }
.pg-reveal-4 { animation: pgSlideUp 0.65s ease-out 0.55s both; }

/* Coordinate tag */
.pg-coord {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: rgba(245,242,235,0.35);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

/* Hero title */
.pg-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #F5F2EB;
  margin: 0 0 1.25rem;
}
.pg-hero-title span {
  color: #C47A2B;
}
.pg-hero-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(245,242,235,0.8);
  margin: 0 0 2rem;
  max-width: 580px;
}

/* Hero buttons */
.pg-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.pg-btn-primary, .pg-btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}
.pg-btn-primary {
  background: #C47A2B;
  color: #F5F2EB;
}
.pg-btn-primary:hover {
  background: #A86520;
  color: #F5F2EB;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196,122,43,0.3);
  text-decoration: none;
}
.pg-btn-outline {
  border: 2px solid rgba(245,242,235,0.3);
  color: #F5F2EB;
  background: transparent;
}
.pg-btn-outline:hover {
  border-color: #F5F2EB;
  color: #F5F2EB;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== PILLARS SECTION ===== */
.pg-pillars-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.pg-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8B5E3C;
  margin: 0 0 0.75rem;
}
.pg-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  margin: 0 0 2.5rem;
}
.pg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .pg-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 550px) {
  .pg-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
.pg-pillar {
  background: #EBE8DF;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  border-top: 3px solid #2D4A2D;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
  display: block;
  color: inherit !important;
}
.pg-pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  color: inherit !important;
  text-decoration: none !important;
}
.pg-pillar svg {
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pg-pillar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  margin: 0 0 0.4rem;
}
.pg-pillar-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: #5A5A5A;
  margin: 0;
  line-height: 1.5;
}

/* ===== ARTICLE CARDS ===== */
.pg-articles-section .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}
@media (max-width: 900px) {
  .pg-articles-section .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 550px) {
  .pg-articles-section .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}
/* Featured first card — full width */
.pg-articles-section .wp-block-post-template > .wp-block-post:first-child {
  grid-column: 1 / -1;
}
.pg-articles-section .wp-block-post-template > .wp-block-post:first-child .pg-card-inner {
  border-left-width: 5px;
  padding: 2.25rem 2.5rem;
}
.pg-articles-section .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
}
.pg-articles-section .wp-block-post-template > .wp-block-post:first-child .wp-block-post-excerpt {
  max-width: 700px;
}

/* Card inner */
.pg-card-inner {
  background: #EBE8DF;
  border-left: 4px solid #2D4A2D;
  border-radius: 0 4px 4px 0;
  padding: 1.5rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}
.pg-card-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

/* Category pill inside cards */
.pg-card-inner .taxonomy-category {
  margin-bottom: 0.6rem;
}
.pg-card-inner .taxonomy-category a {
  background: #2D4A2D;
  color: #F5F2EB !important;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  font-size: 0.68rem !important;
  text-decoration: none !important;
  letter-spacing: 0.5px;
}
.pg-card-inner .taxonomy-category a:hover {
  background: #1E331E;
}

/* ===== CTA SECTION ===== */
.pg-cta-wrap {
  position: relative;
  overflow: hidden;
}
.pg-cta-wrap::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(196,122,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.pg-cta-wrap::after {
  content: '';
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245,242,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Accent rule */
.pg-rule {
  width: 60px;
  height: 3px;
  background: #C47A2B;
  border: none;
  margin: 0 0 1.5rem;
}

/* ===== BEDST I TEST SECTION ===== */
.pg-test-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.pg-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .pg-test-grid { grid-template-columns: 1fr; }
}
.pg-test-card {
  position: relative;
  background: #1A1A1A;
  border-radius: 6px;
  padding: 2rem 1.75rem 1.75rem;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}
.pg-test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  text-decoration: none !important;
}
/* Subtle diagonal stripe accent */
.pg-test-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 40%, rgba(196,122,43,0.1) 40%, rgba(196,122,43,0.1) 50%, transparent 50%);
  pointer-events: none;
}
.pg-test-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C47A2B, #8B5E3C);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pg-test-card:hover::after {
  opacity: 1;
}
.pg-test-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  color: #C47A2B;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 auto;
}
.pg-test-vs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.pg-test-option {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #F5F2EB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.pg-test-vs-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #C47A2B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: #F5F2EB;
  letter-spacing: 1px;
}
.pg-test-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: rgba(245,242,235,0.5);
  margin: 0;
  line-height: 1.5;
}
.pg-test-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pg-test-card:hover .pg-test-arrow {
  opacity: 0.6;
  transform: translate(0, 0);
}

/* ===== E-E-A-T TRUST SECTION ===== */
.pg-trust-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.pg-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 768px) {
  .pg-trust-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.pg-trust-content {
  max-width: 520px;
}
.pg-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2D4A2D;
  color: #F5F2EB;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}
.pg-trust-badge svg {
  width: 14px;
  height: 14px;
}
.pg-trust-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.pg-trust-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #5A5A5A;
  margin: 0 0 1.5rem;
}
.pg-trust-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2D4A2D;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s ease, color 0.25s ease;
}
.pg-trust-link:hover {
  color: #1E331E;
  gap: 0.75rem;
  text-decoration: none;
}
.pg-trust-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.pg-trust-link:hover svg {
  transform: translateX(3px);
}

/* Trust signals grid */
.pg-trust-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 480px) {
  .pg-trust-signals {
    grid-template-columns: 1fr;
  }
}
.pg-signal {
  background: #EBE8DF;
  padding: 1.25rem 1.25rem;
  border-radius: 4px;
  border-left: 3px solid #8B5E3C;
}
.pg-signal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(45,74,45,0.08);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.pg-signal-icon svg {
  width: 16px;
  height: 16px;
}
.pg-signal-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  margin: 0 0 0.3rem;
}
.pg-signal-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: #5A5A5A;
  margin: 0;
  line-height: 1.5;
}