/*
Theme Name: SNOF Theme
Theme URI: https://www.snof.de
Author: SNOF - Stichting Nederlands Onderwijs Frankfurt
Author URI: https://www.snof.de
Description: Custom WordPress theme for SNOF - Stichting Nederlands Onderwijs Frankfurt. Inspired by Oranje-Dijkschool design with colorful navigation tiles, bold typography, and a warm orange-based palette.
Version: 1.6.4
Requires at least: 6.0
Tested up to: 6.9.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snof-theme
Tags: education, custom-menu, custom-logo, featured-images
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --snof-orange: #F27D20;
  --snof-orange-dark: #D96A10;
  --snof-orange-light: #FCEADB;
  --snof-white: #FFFFFF;
  --snof-offwhite: #FDF8F3;
  --snof-text: #2D2D2D;
  --snof-text-light: #666666;
  --snof-gray: #F5F5F5;
  --snof-border: #E8E8E8;

  /* Tile colors */
  --tile-pink: #E84393;
  --tile-blue: #0984E3;
  --tile-coral: #E17055;
  --tile-green: #00B894;
  --tile-yellow: #FDCB6E;
  --tile-purple: #6C5CE7;
  --tile-orange: #F39C12;
  --tile-red: #D63031;

  /* Typography */
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--snof-text);
  background: var(--snof-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--snof-white);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 60px;
  width: auto;
}

/* Header right: nav + social + hamburger */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.main-nav ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--snof-text);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a {
  color: var(--snof-orange);
  background: var(--snof-orange-light);
}

/* Social Links - desktop only */
.social-links {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--snof-gray);
  color: var(--snof-text);
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--snof-orange);
  color: white;
  transform: translateY(-2px);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle (hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--snof-text);
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--snof-orange);
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--snof-orange);
}

/* Use an img approach for better ratio control */
.hero-section .hero-bg-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(242, 125, 32, 0.85) 0%,
    rgba(217, 106, 16, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 24px;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-content .hero-subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--snof-orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: var(--snof-offwhite);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: white;
  opacity: 0.8;
}

/* ============================================
   NAVIGATION TILES (Key Feature)
   ============================================ */
.tiles-section {
  padding: 60px 0;
  background: var(--snof-offwhite);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.tile {
  position: relative;
  padding: 40px 24px;
  border-radius: 16px;
  color: white;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-decoration: none;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  border-radius: 16px;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tile:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.tile-icon {
  font-size: 32px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.tile-icon svg {
  width: 36px;
  height: 36px;
}

.tile-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.tile-1 { background: var(--tile-pink); }
.tile-2 { background: var(--tile-blue); }
.tile-3 { background: var(--tile-coral); }
.tile-4 { background: var(--tile-green); }
.tile-5 { background: var(--tile-purple); }
.tile-6 { background: var(--tile-yellow); color: var(--snof-text); }
.tile-7 { background: var(--tile-orange); }
.tile-8 { background: var(--tile-red); }

/* ============================================
   ABOUT / INTRO SECTION
   ============================================ */
.about-section {
  padding: var(--section-padding) 0;
  background: var(--snof-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--snof-orange);
  margin-bottom: 16px;
}

.about-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--snof-text);
  margin-bottom: 24px;
}

.about-section h2 span {
  color: var(--snof-orange);
}

.about-section p {
  color: var(--snof-text-light);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--snof-orange);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Details badges */
.about-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.detail-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--snof-gray);
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--snof-text);
}

.detail-badge .badge-icon {
  width: 20px;
  height: 20px;
  color: var(--snof-orange);
}

/* ============================================
   INFO CARDS SECTION
   ============================================ */
.info-section {
  padding: var(--section-padding) 0;
  background: var(--snof-orange);
  color: white;
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.info-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.info-section h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  color: white;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.info-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.info-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.info-card-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
}

/* ============================================
   NEWS / RECENT POSTS
   ============================================ */
.news-section {
  padding: var(--section-padding) 0;
  background: var(--snof-offwhite);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--snof-orange);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--snof-text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  height: 200px;
  background: var(--snof-orange-light);
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--snof-orange);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--snof-text);
}

.news-card p {
  font-size: 14px;
  color: var(--snof-text-light);
  line-height: 1.6;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--snof-orange);
  margin-top: 16px;
  transition: gap 0.3s ease;
}

.news-card-link:hover {
  gap: 10px;
}

/* ============================================
   ACTIVITIES GALLERY
   ============================================ */
.activities-section {
  padding: var(--section-padding) 0;
  background: var(--snof-white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.activity-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.activity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-item:hover img {
  transform: scale(1.1);
}

.activity-item .activity-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.activity-item:hover .activity-overlay {
  transform: translateY(0);
}

.activity-overlay span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--section-padding) 0;
  background: var(--snof-gray);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--snof-text);
  margin-bottom: 16px;
}

.cta-section h2 span {
  color: var(--snof-orange);
}

.cta-section p {
  color: var(--snof-text-light);
  margin-bottom: 24px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}

.contact-info-list li svg {
  width: 22px;
  height: 22px;
  color: var(--snof-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--snof-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--snof-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--snof-orange);
}

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

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--snof-orange);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--snof-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 125, 32, 0.3);
}

/* Contact Form 7 Styling */
.wpcf7 {
  width: 100%;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wpcf7-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--snof-text);
  margin-bottom: 20px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--snof-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--snof-text);
  background: var(--snof-white);
  transition: all 0.3s ease;
  outline: none;
  margin-top: 8px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #B0B0B0;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--snof-orange);
  box-shadow: 0 0 0 3px rgba(242, 125, 32, 0.12);
}

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

.wpcf7-form p {
  margin: 0;
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--snof-orange);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
  letter-spacing: 0.3px;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--snof-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 125, 32, 0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(242, 125, 32, 0.2);
}

/* Success message */
.wpcf7-form.sent .wpcf7-response-output {
  border: 2px solid #00B894 !important;
  background: #E6F9F3 !important;
  color: #00815A !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 0 !important;
}

/* Error / invalid message */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  border: 2px solid #D63031 !important;
  background: #FDECEC !important;
  color: #C0392B !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 0 !important;
}

/* Default response output (hidden until submit) */
.wpcf7-response-output {
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-family: var(--font-body);
  font-size: 14px;
  margin: 20px 0 0 !important;
}

/* Validation error per field */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #D63031;
  margin-top: 6px;
  font-weight: 600;
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #D63031 !important;
  box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
}

/* CF7 spinner */
.wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* CF7 in the homepage contact section */
.cta-section .wpcf7-form label {
  margin-bottom: 20px;
}

/* CF7 in page content (Contact page) */
.page-content .wpcf7-form label {
  margin-bottom: 20px;
}

.page-content .wpcf7-form input[type="text"],
.page-content .wpcf7-form input[type="email"],
.page-content .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* CF7 spinner */
.wpcf7-spinner {
  margin-left: 12px;
}
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--snof-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 125, 32, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--snof-text);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--snof-orange);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--snof-orange);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--snof-orange);
  color: white;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
  background: var(--snof-orange);
  color: white;
  padding: 100px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: white;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-content {
  padding: var(--section-padding) 0;
}

.page-content .entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content .entry-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
  color: var(--snof-text);
}

.page-content .entry-content p {
  margin-bottom: 16px;
  color: var(--snof-text-light);
}

.page-content .entry-content img {
  border-radius: 16px;
  margin: 30px 0;
}

/* Tables in page content */
.page-content .entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  table-layout: auto;
}

.page-content .entry-content table thead th,
.entry-content .wp-block-table table thead th {
  background: var(--snof-orange);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  text-align: left;
}

.page-content .entry-content table td,
.entry-content .wp-block-table table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--snof-border);
  color: var(--snof-text);
}

.page-content .entry-content table tr:last-child td,
.entry-content .wp-block-table table tr:last-child td {
  border-bottom: none;
}

.page-content .entry-content table tr:nth-child(even) td,
.entry-content .wp-block-table table tr:nth-child(even) td {
  background: var(--snof-gray);
}

.page-content .entry-content table tr:hover td,
.entry-content .wp-block-table table tr:hover td {
  background: var(--snof-orange-light);
}

/* Links in page content */
.page-content .entry-content a {
  color: var(--snof-orange);
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-content .entry-content a:hover {
  color: var(--snof-orange-dark);
}

/* Lesrooster month heading styles */
.page-content .entry-content h3 {
  font-size: 20px;
  color: var(--snof-orange);
  margin: 32px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--snof-orange-light);
}

/* Compact tables for lesrooster (no thead = schedule tables) */
.page-content .entry-content table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  width: 120px;
  font-family: var(--font-display);
  font-size: 14px;
}

.page-content .entry-content table td:nth-child(2) {
  width: 160px;
}

/* Separator styling */
.page-content .entry-content .wp-block-separator {
  border: none;
  border-top: 2px solid var(--snof-border);
  margin: 40px 0;
}

/* Mobile-responsive tables */
@media (max-width: 600px) {
  .page-content .entry-content table,
  .entry-content .wp-block-table table {
    font-size: 12px;
    table-layout: fixed;
    width: 100%;
  }

  .page-content .entry-content table thead th,
  .entry-content .wp-block-table table thead th {
    font-size: 11px;
    padding: 8px 8px;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .page-content .entry-content table td,
  .page-content .entry-content table th,
  .entry-content .wp-block-table table td,
  .entry-content .wp-block-table table th {
    padding: 7px 8px;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
  }

  .page-content .entry-content table td:first-child {
    width: auto;
    min-width: 0;
    font-size: 12px;
    white-space: normal;
  }

  .page-content .entry-content table td:nth-child(2) {
    width: auto;
  }

  .entry-content .wp-block-table {
    overflow-x: visible;
  }

  .entry-content .wp-block-table table {
    min-width: 0;
    width: 100%;
  }

  /* Make 2-column fee tables split 60/40 */
  .page-content .entry-content table thead th:last-child,
  .page-content .entry-content table td:last-child {
    text-align: right;
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--snof-text-light);
  text-align: center;
  padding-top: 8px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* WordPress blocks */
.wp-block-image {
  margin: 24px 0;
}

.wp-block-image img {
  border-radius: 16px;
}

/* ============================================
   SIDEBAR / WIDGETS
   ============================================ */
.widget-area {
  padding: 30px;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--snof-text);
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--snof-orange);
  border-radius: 3px;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tile {
    padding: 30px 16px;
    min-height: 130px;
  }

  .about-inner,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide social icons on mobile */
  .social-links {
    display: none !important;
  }

  /* Logo smaller on mobile */
  .site-logo img {
    height: 44px;
  }

  /* Slide-in mobile nav panel */
  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: white;
    padding: 100px 30px 40px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-wrapper.active {
    right: 0;
  }

  /* Close button area at top of mobile nav */
  .nav-wrapper::before {
    content: 'Menu';
    position: absolute;
    top: 32px;
    left: 30px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--snof-orange);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 10px;
  }

  .main-nav ul li a:hover,
  .main-nav ul li.current-menu-item a {
    background: var(--snof-orange-light);
    color: var(--snof-orange);
  }

  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tile {
    min-height: 110px;
    padding: 24px 16px;
  }

  .tile-label {
    font-size: 15px;
  }

  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Mobile contact form */
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-section {
    padding: 50px 0;
  }

  .contact-form {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px;
    padding: 14px 14px;
  }

  .wpcf7-form input[type="submit"],
  .wpcf7-form .wpcf7-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }

  .wpcf7-form label {
    font-size: 13px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .tile-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .site-logo img {
    height: 38px;
  }
}
