/*
Theme Name: Porsgrunn Moské
Theme URI: https://porsgrunnmoske.no
Author: Porsgrunn Moské
Author URI: https://porsgrunnmoske.no
Description: Offisiell WordPress-tema for Porsgrunn Moské. Moderne islamisk design med bønnetider, arrangementer, Vipps-donasjoner, GoHighLevel CRM-integrasjon, og GDPR-samsvar.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: porsgrunn-moske
Tags: mosque, islamic, norwegian, prayer-times, events, crm, gdpr, vipps
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
  --pm-primary: #065f46;
  --pm-primary-dark: #064e3b;
  --pm-primary-light: #0d9668;
  --pm-secondary: #d4a843;
  --pm-secondary-light: #e8c96a;
  --pm-gold: #d4a843;
  --pm-beige: #faf8f5;
  --pm-cream: #fdf6e3;
  --pm-white: #ffffff;
  --pm-black: #111827;
  --pm-gray: #6b7280;
  --pm-gray-light: #f9fafb;
  --pm-gray-dark: #374151;
  --pm-text: #1f2937;
  --pm-text-light: #6b7280;
  --pm-border: #e5e7eb;
  --pm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --pm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --pm-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --pm-shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
  --pm-radius: 10px;
  --pm-radius-lg: 16px;
  --pm-radius-xl: 24px;
  --pm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pm-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--pm-font);
  color: var(--pm-text);
  background-color: var(--pm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--pm-primary);
  text-decoration: none;
  transition: var(--pm-transition);
}

a:hover {
  color: var(--pm-primary-light);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--pm-black);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ========================================
   Ramadan Banner
   ======================================== */
.ramadan-banner {
  background: linear-gradient(135deg, #d4a843 0%, #e8c96a 50%, #d4a843 100%);
  color: var(--pm-primary-dark);
  padding: 0.625rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.ramadan-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (min-width: 768px) {
  .ramadan-banner { font-size: 1.125rem; padding: 0.75rem 1rem; }
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 95, 70, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--pm-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--pm-white);
  font-size: 1.0625rem;
  font-weight: 800;
  min-width: 0;
  letter-spacing: -0.01em;
}

.site-logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .site-logo { font-size: 1.25rem; }
  .site-logo img { width: 42px; height: 42px; }
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--pm-radius);
  transition: var(--pm-transition);
}

.main-nav a:hover {
  color: var(--pm-white);
  background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active,
.main-nav .current-menu-item a {
  color: var(--pm-secondary);
  background: rgba(212, 168, 67, 0.12);
  font-weight: 600;
}

/* Register Button */
.btn-register {
  display: none;
  background: var(--pm-secondary);
  color: var(--pm-primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: var(--pm-transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-register:hover {
  background: var(--pm-secondary-light);
  color: var(--pm-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

@media (min-width: 768px) {
  .btn-register { display: inline-flex; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--pm-white);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--pm-radius);
  transition: var(--pm-transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--pm-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
  border-radius: var(--pm-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--pm-transition);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pm-secondary);
}

.mobile-menu .btn-register-mobile {
  display: block;
  background: var(--pm-secondary);
  color: var(--pm-primary-dark);
  text-align: center;
  padding: 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pm-white);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.55) 0%, rgba(6, 78, 59, 0.75) 60%, rgba(6, 78, 59, 0.9) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 800px;
}

.hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--pm-white);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero-icon { width: 64px; height: 64px; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--pm-transition);
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--pm-primary);
  color: var(--pm-white);
  border-color: var(--pm-primary);
}

.btn-primary:hover {
  background: var(--pm-primary-dark);
  border-color: var(--pm-primary-dark);
  color: var(--pm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
  background: var(--pm-secondary);
  color: var(--pm-primary-dark);
  border-color: var(--pm-secondary);
}

.btn-secondary:hover {
  background: var(--pm-secondary-light);
  border-color: var(--pm-secondary-light);
  color: var(--pm-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 168, 67, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pm-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--pm-white);
  color: var(--pm-primary);
  border-color: var(--pm-white);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--pm-primary);
  border-color: var(--pm-primary);
}

.btn-outline-primary:hover {
  background: var(--pm-primary);
  color: var(--pm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.2);
}

/* Vipps Button */
.btn-vipps {
  background: #ff5b24;
  color: var(--pm-white);
  border-color: #ff5b24;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  gap: 0.625rem;
}

.btn-vipps:hover {
  background: #e64d1a;
  border-color: #e64d1a;
  color: var(--pm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 91, 36, 0.35);
}

.btn-vipps svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--pm-beige);
}

.section-dark {
  background: var(--pm-primary);
  color: var(--pm-white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M30 0L60 30L30 60L0 30Z" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>');
  background-size: 60px 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--pm-secondary);
  margin: 0.75rem auto 0;
  border-radius: 999px;
}

.section-title p {
  color: var(--pm-text-light);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-title h2 {
  color: var(--pm-white);
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  transition: var(--pm-transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pm-shadow-xl);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--pm-transition);
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--pm-black);
  font-weight: 700;
}

.card-text {
  color: var(--pm-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   Prayer Times
   ======================================== */
.prayer-times-section {
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dark) 100%);
  color: var(--pm-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.prayer-times-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="1.5" fill="rgba(212,168,67,0.15)"/></svg>');
  background-size: 80px 80px;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .prayer-times-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .prayer-times-grid { grid-template-columns: repeat(6, 1fr); }
}

.prayer-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--pm-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--pm-transition);
}

.prayer-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.prayer-card .prayer-name {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prayer-card .prayer-time {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--pm-secondary);
  letter-spacing: -0.02em;
}

.hijri-date {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
}

.hijri-date strong {
  color: var(--pm-secondary);
  font-size: 1.375rem;
}

/* ========================================
   Donation / Vipps Section
   ======================================== */
.donation-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.donation-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.donation-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--pm-white);
  border-radius: var(--pm-radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--pm-shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.donation-card h2 {
  margin-bottom: 0.75rem;
}

.donation-card p {
  color: var(--pm-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.vipps-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pm-gray-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--pm-radius);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pm-black);
  margin-bottom: 1.5rem;
  border: 1px solid var(--pm-border);
}

/* ========================================
   Events
   ======================================== */
.event-card {
  background: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  transition: var(--pm-transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--pm-primary);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow-lg);
}

.event-card-body {
  padding: 1.75rem;
}

.event-category {
  display: inline-block;
  background: rgba(6, 95, 70, 0.08);
  color: var(--pm-primary);
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.event-title {
  font-size: 1.25rem;
  color: var(--pm-black);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--pm-text-light);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-description {
  color: var(--pm-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Event Filters */
.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.event-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--pm-border);
  background: var(--pm-white);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pm-transition);
  color: var(--pm-text-light);
}

.event-filter-btn:hover,
.event-filter-btn.active {
  background: var(--pm-primary);
  color: var(--pm-white);
  border-color: var(--pm-primary);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: rgba(6, 95, 70, 0.06);
  border-radius: var(--pm-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pm-primary);
  transition: var(--pm-transition);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--pm-primary);
  color: var(--pm-white);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: var(--pm-black);
  font-weight: 700;
}

.contact-info-text p {
  color: var(--pm-text-light);
  font-size: 0.9375rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: var(--pm-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label .required {
  color: #dc2626;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--pm-border);
  border-radius: var(--pm-radius);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--pm-transition);
  background: var(--pm-white);
  color: var(--pm-text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--pm-primary);
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--pm-primary);
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: var(--pm-text-light);
  line-height: 1.6;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--pm-radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--pm-black);
  color: var(--pm-white);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-section h3 {
  color: var(--pm-secondary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--pm-secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

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

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pm-white);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: none;
  border-top: 1px solid var(--pm-border);
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: var(--pm-text);
}

.cookie-text p {
  font-size: 0.8125rem;
  color: var(--pm-text-light);
}

.cookie-text a {
  color: var(--pm-primary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.625rem;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--pm-transition);
}

.cookie-accept {
  background: var(--pm-primary);
  color: var(--pm-white);
}

.cookie-accept:hover {
  background: var(--pm-primary-dark);
}

.cookie-decline {
  background: transparent;
  color: var(--pm-text);
  border-color: var(--pm-border);
}

.cookie-decline:hover {
  border-color: var(--pm-text);
}

/* ========================================
   Google Maps Embed
   ======================================== */
.map-container {
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

@media (min-width: 768px) {
  .map-container iframe { height: 400px; }
}

/* ========================================
   Registration Form
   ======================================== */
.registration-section {
  background: var(--pm-beige);
  padding: 5rem 0;
}

.registration-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--pm-white);
  padding: 2.5rem;
  border-radius: var(--pm-radius-xl);
  box-shadow: var(--pm-shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.gdpr-notice {
  background: rgba(6, 95, 70, 0.04);
  padding: 1.25rem;
  border-radius: var(--pm-radius);
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  color: var(--pm-text-light);
  line-height: 1.7;
  border-left: 3px solid var(--pm-primary);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dark) 100%);
  color: var(--pm-white);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M30 0L60 30L30 60L0 30Z" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>');
  background-size: 60px 60px;
}

.page-header h1 {
  color: var(--pm-white);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.0625rem;
  position: relative;
}

@media (min-width: 768px) {
  .page-header { padding: 5rem 0; }
  .page-header h1 { font-size: 3rem; }
}

/* ========================================
   WordPress Specific
   ======================================== */
.wp-block-image img {
  border-radius: var(--pm-radius-lg);
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--pm-primary); }
.text-secondary { color: var(--pm-secondary); }
.text-white { color: var(--pm-white); }
.text-muted { color: var(--pm-text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--pm-white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
