/*
Theme Name: Luup Theme
Theme URI: https://luup.morko.posso.fi
Description: Minimalist nature-inspired theme for Luup Oy
Version: 1.0.0
Author: AutoWP
*/

/* =====================
   CSS Variables
   ===================== */
:root {
  --color-primary: #2D5016;      /* deep forest green */
  --color-secondary: #4A7C28;   /* mid green */
  --color-accent: #8B6914;       /* warm earth brown */
  --color-light-green: #7DAF3D;  /* lighter green */
  --color-bg: #FAFAF7;           /* off-white natural */
  --color-bg-alt: #F2EFE8;       /* warm cream */
  --color-text: #1C1C1A;         /* near black */
  --color-text-muted: #5C5C55;   /* muted text */
  --color-border: rgba(45,80,22,0.12);
  --color-white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(45,80,22,0.08);
  --shadow-md: 0 8px 24px rgba(45,80,22,0.12);
  --shadow-lg: 0 16px 48px rgba(45,80,22,0.16);

  --max-width: 1200px;
  --section-padding: 6rem 2rem;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--color-secondary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =====================
   Utility
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem 0 1.5rem;
}

.section-divider-center {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 1.5rem;
}

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

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #7A5C10;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================
   Google Fonts
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* =====================
   Header & Navigation
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.brand:hover { color: var(--color-primary); }

.brand-text {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.brand svg {
  width: 36px;
  height: 36px;
}

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

.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item a {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  margin-left: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

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

/* Mobile Nav */
.main-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(45,80,22,0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

body.nav-open .main-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.main-nav .menu {
  list-style: none;
  text-align: center;
}

.main-nav .menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-white);
  padding: 0.75rem 2rem;
  transition: color 0.2s;
}

.main-nav .menu a:hover {
  color: var(--color-accent);
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =====================
   Hero Section
   ===================== */
.hero-section {
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a0a 60%, #2D5016 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(125,175,61,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(139,105,20,0.1) 0%, transparent 40%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero-text .section-label {
  color: rgba(125,175,61,0.9);
}

.hero-text h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-text p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  height: 380px;
  object-fit: cover;
}

.hero-stats {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

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

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* =====================
   Features Section
   ===================== */
.features-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.features-section .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.features-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.features-section .lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: white;
  fill: white;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* =====================
   CTA Banner
   ===================== */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a0a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(125,175,61,0.1) 0%, transparent 60%);
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* =====================
   Text + Image Section
   ===================== */
.text-image-section {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.text-image-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.text-image-inner.reverse { direction: rtl; }
.text-image-inner.reverse > * { direction: ltr; }

.text-image-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.text-image-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.text-image-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.text-image-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   Testimonials
   ===================== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  margin-bottom: -1rem;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  color: var(--color-text-muted);
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.faq-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =====================
   Page Hero (Inner pages)
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a0a 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(125,175,61,0.1) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* =====================
   Services Page
   ===================== */
.services-grid-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-header {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-card-header svg {
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,0.9);
  fill: rgba(255,255,255,0.9);
}

.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* =====================
   About Page
   ===================== */
.about-section {
  padding: var(--section-padding);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

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

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.value-item h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* =====================
   Contact Page
   ===================== */
.contact-section {
  padding: var(--section-padding);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
}

.contact-detail-text strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-detail-text span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(45,80,22,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =====================
   Blog
   ===================== */
.blog-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.blog-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
}

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

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.35;
}

.blog-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card-body h3 a:hover { color: var(--color-primary); }

.blog-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-read-more:hover { color: var(--color-secondary); }

/* =====================
   Footer
   ===================== */
.site-footer {
  background: #1C1C1A;
  color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 2rem;
}

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

.footer-brand {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--color-white); }

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

/* =====================
   Single Post / Blog
   ===================== */
.single-post-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a0a 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.single-post-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-white);
  max-width: 780px;
  margin: 0 auto 1rem;
}

.post-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.post-content {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.post-content h2 { font-size: 1.75rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
.post-content p { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }

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

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
  .features-grid,
  .testimonials-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  .menu-toggle { display: flex; }
  .desktop-nav,
  .nav-cta { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-image-wrap img {
    height: 260px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1rem;
  }

  .text-image-inner,
  .about-intro,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .text-image-inner.reverse { direction: ltr; }

  .features-grid,
  .testimonials-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
  }

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

/* =====================
   WordPress Defaults Override
   ===================== */
.wp-block-image { margin: 0; }
figure.wp-block-image { margin: 0; }

/* Gutenberg content styles */
.entry-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}

.entry-content h3 {
  font-size: 1.25rem;
  margin: 1.2rem 0 0.75rem;
}

.entry-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.entry-content ul {
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.entry-content ul li { margin-bottom: 0.4rem; }

.entry-content .wp-block-group {
  margin-bottom: 2rem;
}

.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
}

.entry-content .luup-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.entry-content .luup-soft-panel {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.entry-content .luup-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.entry-content .luup-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.entry-content .luup-card h3 {
  color: var(--color-primary);
  margin-top: 0;
}

.entry-content .luup-cta-box {
  background: linear-gradient(135deg, var(--color-primary), #1a3a0a);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.entry-content .luup-cta-box h2,
.entry-content .luup-cta-box h3,
.entry-content .luup-cta-box p {
  color: inherit;
}

.entry-content .luup-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.entry-content .luup-image-frame img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .entry-content .luup-card-grid,
  .entry-content .luup-hero-grid {
    grid-template-columns: 1fr;
  }

  .entry-content .luup-soft-panel,
  .entry-content .luup-cta-box,
  .entry-content .luup-panel {
    padding: 1.5rem;
  }
}
