/*
Theme Name: Mendillo Digital Marketing
Theme URI: https://mendillodigital.com
Author: Sam Mendillo
Author URI: https://mendillodigital.com
Description: A premium, Apple-inspired theme for Mendillo Digital Marketing — clean, modern, and conversion-focused.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mendillo
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo, editor-style
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Colors */
  --m-black: #0a0a0a;
  --m-dark: #1d1d1f;
  --m-gray-900: #2c2c2e;
  --m-gray-700: #48484a;
  --m-gray-500: #8e8e93;
  --m-gray-300: #c7c7cc;
  --m-gray-100: #f2f2f7;
  --m-white: #fbfbfd;
  --m-accent: #2997ff;
  --m-accent-hover: #0077ed;
  --m-accent-subtle: rgba(41, 151, 255, 0.08);
  --m-green: #30d158;
  --m-purple: #bf5af2;
  --m-orange: #ff9f0a;

  /* Typography */
  --font-display: 'PP Neue Montreal', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 12vh, 160px);
  --container-max: 1200px;
  --container-wide: 1400px;
  --gutter: clamp(20px, 4vw, 80px);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--m-dark);
  background: var(--m-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--m-accent);
  color: white;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--m-dark);
}

.h-display {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.h-headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.h-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.h-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--m-gray-500);
  letter-spacing: -0.005em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--m-accent), var(--m-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--m-orange), #ff375f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-accent);
}


/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

.section--dark {
  background: var(--m-black);
  color: var(--m-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--m-white);
}

.section--dark .h-subtitle {
  color: var(--m-gray-500);
}

.section--tinted {
  background: var(--m-gray-100);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }


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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-out-expo);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease-out-expo);
}

.site-header.is-scrolled::before {
  background: rgba(251, 251, 253, 0.88);
}

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

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--m-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.site-logo .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--m-dark);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-primary a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--m-dark);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-primary a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-primary a.current-menu-item,
.nav-primary a.active {
  color: var(--m-accent);
  font-weight: 500;
}

.nav-cta {
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 100px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--m-accent);
  color: white;
  padding: 10px 22px;
}

.btn-primary:hover {
  background: var(--m-accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(41, 151, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--m-accent);
  padding: 10px 22px;
  border: 1.5px solid rgba(41, 151, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--m-accent-subtle);
  border-color: var(--m-accent);
}

.btn-dark {
  background: var(--m-dark);
  color: white;
  padding: 10px 22px;
}

.btn-dark:hover {
  background: var(--m-gray-900);
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--m-accent);
  padding: 10px 0;
  font-weight: 500;
}

.btn-ghost::after {
  content: '→';
  transition: transform 0.3s var(--ease-out-expo);
  display: inline-block;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}


/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--m-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 2px;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--m-black);
  color: var(--m-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero-content h1 {
  color: var(--m-white);
  margin-bottom: 24px;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-content .h-subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--m-gray-500);
  animation: fadeUp 1s var(--ease-out-expo) 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out-expo) 0.6s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s var(--ease-out-expo) 1.2s both;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--m-gray-500);
  font-family: var(--font-mono);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--m-gray-500), transparent);
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Floating badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--m-gray-300);
  margin-bottom: 32px;
  animation: fadeUp 1s var(--ease-out-expo) 0s both;
  backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--m-green);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}


/* ============================================
   METRICS BAR
   ============================================ */
.metrics-bar {
  background: var(--m-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.metric-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--m-white);
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 0.82rem;
  color: var(--m-gray-500);
  letter-spacing: 0.02em;
}


/* ============================================
   SERVICES
   ============================================ */
.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.services-header .label {
  margin-bottom: 16px;
}

.services-header h2 {
  margin-bottom: 16px;
}

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

.service-card {
  position: relative;
  background: var(--m-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--m-accent), var(--m-purple));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
}

.service-icon--blue { background: rgba(41, 151, 255, 0.1); color: var(--m-accent); }
.service-icon--purple { background: rgba(191, 90, 242, 0.1); color: var(--m-purple); }
.service-icon--green { background: rgba(48, 209, 88, 0.1); color: var(--m-green); }
.service-icon--orange { background: rgba(255, 159, 10, 0.1); color: var(--m-orange); }
.service-icon--red { background: rgba(255, 55, 95, 0.1); color: #ff375f; }
.service-icon--teal { background: rgba(90, 200, 250, 0.1); color: #5ac8fa; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--m-gray-500);
  margin-bottom: 20px;
}

.service-card .btn-ghost {
  font-size: 0.85rem;
}


/* ============================================
   SHOWCASE / FEATURED WORK
   ============================================ */
.showcase-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--m-gray-100);
  cursor: pointer;
  group: true;
}

.showcase-card--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.showcase-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out-expo);
}

.showcase-card:hover .showcase-card-bg {
  transform: scale(1.04);
}

.showcase-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.4s var(--ease-out-expo);
}

.showcase-card .label {
  margin-bottom: 8px;
  color: var(--m-accent);
  font-size: 0.7rem;
}

.showcase-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.showcase-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Placeholder gradient bgs */
.showcase-card--gradient-1 .showcase-card-bg {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}
.showcase-card--gradient-2 .showcase-card-bg {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #2d1b69);
}
.showcase-card--gradient-3 .showcase-card-bg {
  background: linear-gradient(135deg, #1b2838, #0d1b2a, #1a1a2e);
}


/* ============================================
   PROCESS
   ============================================ */
.process-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--m-gray-300), var(--m-gray-300), transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--m-white);
  border: 2px solid var(--m-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--m-dark);
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: all 0.4s var(--ease-out-expo);
}

.process-step:hover .process-step-number {
  border-color: var(--m-accent);
  color: var(--m-accent);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--m-accent-subtle);
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--m-gray-500);
  line-height: 1.5;
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out-expo);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--m-orange);
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--m-gray-300);
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m-accent), var(--m-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--m-white);
  font-weight: 500;
}

.testimonial-meta span {
  font-size: 0.78rem;
  color: var(--m-gray-500);
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: linear-gradient(135deg, var(--m-dark) 0%, #1a1a2e 50%, var(--m-gray-900) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(60px, 8vw, 100px) clamp(30px, 5vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner h2 {
  color: var(--m-white);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-inner .h-subtitle {
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--m-black);
  color: var(--m-gray-500);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-gray-300);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--m-gray-500);
  padding: 5px 0;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

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


/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--m-gray-100);
}

.page-content {
  padding: 64px 0;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--m-gray-700);
  margin-bottom: 1.5em;
  max-width: 720px;
}


/* ============================================
   BLOG
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--m-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s var(--ease-out-expo);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--m-gray-100);
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

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

.post-card-body .label {
  margin-bottom: 10px;
}

.post-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.post-card-body h3 a {
  transition: color 0.25s ease;
}

.post-card-body h3 a:hover {
  color: var(--m-accent);
}

.post-card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--m-gray-500);
}

.post-card-meta {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--m-gray-500);
}


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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

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

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

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

@media (max-width: 768px) {
  .nav-primary {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary a {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 12px 24px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .showcase-card--tall {
    grid-row: span 1;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.alignwide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
}

/* Gutenberg Compatibility */
.wp-block-group,
.wp-block-columns {
  margin-bottom: 2rem;
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* WordPress admin bar adjustment */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
