/*
Theme Name: Doctor Eco
Theme URI: https://doctor.eco
Author: Dr. Mateusz Panek
Author URI: https://doctor.eco
Description: A professional portfolio theme for Dr. Mateusz Panek — AI, Sustainability & Compliance Expert. Features glassmorphism design, scroll animations, and a built-in contact form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doctor-eco
Tags: one-column, custom-menu, featured-images, translation-ready, blog, portfolio
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 10%;
  --primary: 220 60% 22%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 9% 95%;
  --secondary-foreground: 0 0% 10%;
  --muted: 40 9% 91%;
  --muted-foreground: 40 3% 42%;
  --accent: 220 60% 22%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --border: 40 9% 91%;
  --input: 40 9% 91%;
  --ring: 220 60% 22%;
  --radius: 0.75rem;

  /* Custom tokens */
  --off-white: 40 9% 97%;
  --charcoal: 220 25% 10%;
  --sage: 220 55% 28%;
  --sage-light: 220 50% 38%;
  --sage-glow: 220 60% 50%;
  --medium-gray: 40 3% 75%;
  --dark-gray: 40 3% 42%;
  --linkedin: 210 96% 40%;
  --glass: 0 0% 100% / 0.7;

  /* Glass & gradient tokens */
  --glass-bg: 0 0% 100% / 0.6;
  --glass-border: 0 0% 100% / 0.2;
  --gradient-text-from: 38 72% 58%;
  --gradient-text-to: 28 85% 45%;
  --glow-sage: 0 0 60px hsl(220 60% 50% / 0.15);
  --surface-elevated: 0 0% 100%;

  --font-serif: 'DM Serif Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

::selection {
  background: hsl(var(--sage) / 0.2);
  color: hsl(var(--foreground));
}

/* ==========================================================================
   Component Classes
   ========================================================================== */

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  color: hsl(var(--sage));
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.glass-card {
  background: hsl(var(--glass-bg));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid hsl(var(--glass-border));
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--gradient-text-from)), hsl(var(--gradient-text-to)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(var(--sage) / 0.3), hsl(var(--sage-glow) / 0.1), transparent);
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.section-padding {
  padding: 6rem 1.5rem;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container-main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid-2 {
  display: grid;
  gap: 4rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  display: grid;
  gap: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.7s;
}
.site-header.scrolled {
  background: hsl(var(--glass-bg));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid hsl(var(--glass-border));
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.header-logo { display: block; }
.header-logo img {
  height: 3rem;
  width: auto;
  transition: all 0.7s;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  transition: color 0.7s;
}
.site-header.scrolled .menu-toggle { color: hsl(var(--foreground)); }

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

.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--glass-bg));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid hsl(var(--glass-border));
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}
.primary-nav.open { display: flex; }

.primary-nav a,
.primary-nav .menu-item a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  color: rgba(255, 255, 255, 0.7);
}
.primary-nav a::after,
.primary-nav .menu-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1.5px;
  width: 0;
  background: linear-gradient(to right, hsl(var(--sage)), hsl(var(--sage-glow)));
  transition: all 0.3s;
}
.primary-nav a:hover::after,
.primary-nav .menu-item a:hover::after { width: 100%; }
.primary-nav a:hover,
.primary-nav .menu-item a:hover { color: white; }

.site-header.scrolled .primary-nav a,
.site-header.scrolled .primary-nav .menu-item a { color: hsl(var(--foreground) / 0.6); }
.site-header.scrolled .primary-nav a:hover,
.site-header.scrolled .primary-nav .menu-item a:hover { color: hsl(var(--foreground)); }

/* WordPress menu list reset */
.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-linkedin {
  display: none;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}
.header-linkedin:hover { color: white; }
.site-header.scrolled .header-linkedin { color: hsl(var(--foreground) / 0.4); }
.site-header.scrolled .header-linkedin:hover { color: hsl(var(--linkedin)); }
.header-linkedin svg { width: 18px; height: 18px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem;
  padding-bottom: 6rem;
  padding-top: calc(80px + 6rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    hsl(var(--charcoal) / 0.8),
    hsl(var(--charcoal) / 0.5),
    hsl(var(--charcoal) / 0.3));
}

.hero-mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.2;
}
.hero-mesh-circle-1 {
  position: absolute;
  left: 10%;
  top: 20%;
  height: 500px;
  width: 500px;
  border-radius: 50%;
  background: hsl(var(--sage) / 0.2);
  filter: blur(120px);
}
.hero-mesh-circle-2 {
  position: absolute;
  right: 10%;
  bottom: 20%;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  background: hsl(var(--sage-glow) / 0.15);
  filter: blur(100px);
}

.hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-line {
  margin-bottom: 2rem;
  height: 2px;
  width: 48px;
  background: linear-gradient(to right, hsl(var(--sage)), hsl(var(--sage-glow)));
}

.hero-title {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.1;
  color: white;
}
.hero-title .gradient-text {
  display: inline;
}

.hero-subtitle {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

.hero-quote {
  margin: 2rem 0;
  border-left: 2px solid hsl(var(--sage));
  padding-left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}
.hero-quote-author {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: white;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--charcoal));
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  margin-top: 2.5rem;
}
.hero-cta:hover {
  transform: scale(1.05);
  background: hsl(var(--sage));
  color: white;
  box-shadow: 0 0 60px -15px hsl(var(--sage-glow) / 0.3);
}
.hero-cta span { display: inline-block; transition: transform 0.3s; }
.hero-cta:hover span { transform: translateX(4px); }

.hero-photo {
  order: -1;
}
.hero-photo img {
  width: 90%;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  transition: transform 0.8s ease-out;
}
.hero-photo img:hover { transform: scale(1.04); }

/* ==========================================================================
   Animated Line (section divider)
   ========================================================================== */

.animated-line {
  height: 1px;
  max-width: 600px;
  margin: 0 auto 5rem;
  background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
  overflow: hidden;
  padding: 4rem 1.5rem;
}
.trust-bar-title {
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: hsl(var(--muted-foreground));
}
.trust-bar-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-card {
  display: flex;
  min-height: 100px;
  width: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.5s;
}
.trust-card:hover { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08); transform: translateY(-4px); }
.trust-card img {
  height: 3.3rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: all 0.5s;
}
.trust-card:hover img { filter: grayscale(0); }
.trust-card span {
  font-size: 0.7rem;
  line-height: 1.3;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section { position: relative; overflow: hidden; }

.about-grid {
  display: grid;
  align-items: start;
  gap: 4rem;
}

.about-image {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08);
}
.about-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}
.about-image:hover img { transform: scale(1.05); }

.about-title {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}

.about-text {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}
.about-text strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}
.about-text:last-of-type { margin-bottom: 2.5rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--foreground) / 0.2);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--foreground));
  transition: all 0.3s;
}
.btn-outline:hover {
  transform: scale(1.05);
  border-color: hsl(var(--sage));
  background: hsl(var(--sage));
  color: white;
}
.btn-outline span { display: inline-block; transition: transform 0.3s; }
.btn-outline:hover span { transform: translateX(4px); }

/* ==========================================================================
   Featured Course (dark section)
   ========================================================================== */

.featured-course {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, hsl(var(--charcoal)), hsl(var(--foreground)), hsl(var(--foreground)));
  padding: 7rem 1.5rem;
  color: hsl(var(--background));
}

.featured-course .tag { color: hsl(var(--background) / 0.4); }

.featured-course-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: hsl(var(--background));
}

.featured-course-desc {
  margin-bottom: 5rem;
  max-width: 550px;
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--background) / 0.5);
}

.course-mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.course-mesh .circle-1 {
  position: absolute;
  left: 20%;
  top: 30%;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  background: hsl(var(--sage-glow) / 0.08);
  filter: blur(120px);
}
.course-mesh .circle-2 {
  position: absolute;
  right: 10%;
  bottom: 20%;
  height: 300px;
  width: 300px;
  border-radius: 50%;
  background: hsl(var(--sage) / 0.06);
  filter: blur(100px);
}
.course-mesh .circle-3 {
  position: absolute;
  left: 60%;
  top: 10%;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  background: hsl(var(--sage-light) / 0.05);
  filter: blur(80px);
}

.course-card {
  display: flex;
  height: 100%;
  cursor: pointer;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--background) / 0.08);
  background: hsl(var(--background) / 0.05);
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: all 0.5s;
}
.course-card:hover {
  border-color: hsl(var(--background) / 0.2);
  background: hsl(var(--background) / 0.1);
  transform: translateY(-6px);
}

.course-card-number {
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.25);
}

.course-card-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--background));
}

.course-card-desc {
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.75;
  color: hsl(var(--background) / 0.5);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--background) / 0.2);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--background));
  transition: all 0.3s;
}
.btn-outline-light:hover {
  transform: scale(1.05);
  border-color: hsl(var(--background));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.btn-outline-light span { display: inline-block; transition: transform 0.3s; }
.btn-outline-light:hover span { transform: translateX(4px); }

/* ==========================================================================
   Expertise Section
   ========================================================================== */

.expertise-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}
.expertise-subtitle {
  margin-bottom: 3.5rem;
  max-width: 500px;
  color: hsl(var(--muted-foreground));
}

.expertise-card {
  display: flex;
  height: 100%;
  cursor: pointer;
  flex-direction: column;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s;
}
.expertise-card:hover { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08); transform: translateY(-6px); }

.expertise-card-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expertise-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: hsl(var(--sage) / 0.08);
  color: hsl(var(--sage));
  transition: background 0.3s;
}
.expertise-card:hover .expertise-icon { background: hsl(var(--sage) / 0.15); }
.expertise-icon svg { width: 24px; height: 24px; }

.expertise-card-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground) / 0.4);
}

.expertise-card-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  transition: color 0.3s;
}
.expertise-card:hover .expertise-card-title { color: hsl(var(--sage)); }

.expertise-card-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Blog Section & Blog Cards
   ========================================================================== */

.blog-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}
.blog-subtitle {
  margin-bottom: 3.5rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 500px;
}

.blog-card {
  display: flex;
  height: 100%;
  cursor: pointer;
  flex-direction: column;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s;
}
.blog-card:hover { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08); transform: translateY(-6px); }

.blog-card-category {
  margin-bottom: 1rem;
  display: inline-block;
  width: fit-content;
  border-radius: 9999px;
  background: hsl(var(--sage) / 0.08);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--sage));
}

.blog-card-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.3;
  transition: color 0.3s;
}
.blog-card:hover .blog-card-title { color: hsl(var(--sage)); }

.blog-card-date {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground) / 0.5);
}

.blog-card-excerpt {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.875rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--sage));
  transition: all 0.3s;
}
.blog-card-link:hover { color: hsl(var(--foreground)); }
.blog-card-link span { display: inline-block; transition: transform 0.3s; }
.blog-card:hover .blog-card-link span { transform: translateX(4px); }

.blog-view-all { text-align: center; margin-top: 3.5rem; }

/* Blog list page cards */
.blog-list-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background));
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.blog-list-card:hover {
  border-color: hsl(var(--sage) / 0.4);
  box-shadow: 0 20px 40px hsl(var(--sage) / 0.1);
  transform: translateY(-4px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}
.contact-subtitle {
  margin-bottom: 3.5rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 500px;
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 4rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--background));
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.5s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: hsl(var(--muted-foreground) / 0.3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: hsl(var(--sage) / 0.5);
  box-shadow: 0 0 30px -10px hsl(var(--sage-glow) / 0.2);
}
.contact-form textarea { resize: vertical; }

.btn-primary {
  margin-top: 1rem;
  align-self: flex-start;
  border-radius: 9999px;
  background: hsl(var(--foreground));
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--background));
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: scale(1.05);
  background: hsl(var(--sage));
  box-shadow: 0 0 60px -15px hsl(var(--sage-glow) / 0.3);
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--muted-foreground));
}
.contact-info-value {
  font-size: 0.9rem;
}
.contact-info-value a {
  color: hsl(var(--foreground));
  transition: color 0.3s;
}
.contact-info-value a:hover { color: hsl(var(--sage)); }

.linkedin-link {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s;
}
.linkedin-link:hover { color: hsl(var(--linkedin)); }
.linkedin-link svg { width: 18px; height: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: hsl(var(--foreground));
  padding: 5rem 1.5rem;
  color: hsl(var(--background));
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.footer-logo img {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.75;
  color: hsl(var(--background) / 0.4);
}

.footer-heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: hsl(var(--background) / 0.4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.5);
  transition: all 0.3s;
}
.footer-links a:hover { color: hsl(var(--background)); }

.footer-bottom {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid hsl(var(--background) / 0.1);
  padding-top: 2rem;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: hsl(var(--background) / 0.3);
}

.footer-social {
  color: hsl(var(--background) / 0.3);
  transition: all 0.3s;
}
.footer-social:hover { color: hsl(var(--background)); }
.footer-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Single Post / Prose
   ========================================================================== */

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--sage));
  transition: color 0.3s;
  margin-bottom: 2rem;
}
.post-back:hover { color: hsl(var(--foreground)); }

.post-header-category {
  display: inline-block;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--sage) / 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--sage));
}

.post-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.2;
}

.post-date {
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: hsl(var(--medium-gray));
}

.post-content h2 {
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: hsl(var(--dark-gray));
}
.post-content strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: hsl(var(--dark-gray));
}

/* Related posts */
.related-posts {
  margin-top: 5rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 3rem;
}
.related-posts h2 {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.related-grid {
  display: grid;
  gap: 1.5rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background));
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.related-card:hover {
  border-color: hsl(var(--sage) / 0.4);
  box-shadow: 0 20px 40px hsl(var(--sage) / 0.1);
  transform: translateY(-4px);
}
.related-card .blog-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card .blog-card-link span { transition: transform 0.3s; }
.related-card:hover .blog-card-link span { transform: translateX(4px); }

/* ==========================================================================
   404 Page
   ========================================================================== */

.page-404 {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem 7rem;
  text-align: center;
}
.page-404 h1 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}
.page-404 p {
  margin-bottom: 2rem;
  color: hsl(var(--dark-gray));
}

/* ==========================================================================
   Blog List Page
   ========================================================================== */

.blog-page-header {
  padding: 5rem 1.5rem 0;
}
.blog-page-header .container-main {
  padding-bottom: 3rem;
}
.blog-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--sage));
  transition: color 0.3s;
  margin-bottom: 2rem;
}
.blog-page-back:hover { color: hsl(var(--foreground)); }

.blog-page-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
}
.blog-page-desc {
  margin-bottom: 3rem;
  font-size: 1.125rem;
  color: hsl(var(--dark-gray));
}

/* ==========================================================================
   WordPress Defaults
   ========================================================================== */

.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 768px) {
  .section-padding { padding: 8rem 2rem; }
  .header-inner { padding: 1.25rem 2rem; }
  .hero-section { padding-left: 2rem; padding-right: 2rem; padding-bottom: 8rem; padding-top: calc(80px + 8rem); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .hero-title { font-size: 3rem; }
  .hero-photo { order: 1; }
  .trust-bar { padding: 6rem 2rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .footer-grid { grid-template-columns: 1fr auto auto; gap: 2rem; }
  .footer-bottom { flex-direction: row; }
  .post-title { font-size: 3rem; }
  .post-content h2 { font-size: 1.875rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-page-title { font-size: 3rem; }
  .featured-course { padding: 9rem 2rem; }
  .featured-course-title { font-size: 3rem; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 2.5rem;
  }
  .header-linkedin { display: flex; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .about-title { font-size: 2.8rem; }
  .expertise-title { font-size: 2.25rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .featured-course-title { font-size: 3.75rem; }
}

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