/* ================================================================
   Wolves Studio — WordPress Theme Styles
   Design: Dark + neon green (oklch(0.85 0.27 142))
   Fonts:  Space Grotesk (display) · Inter (body) · JetBrains Mono
   ================================================================ */

/* ------------------------------------------------------------------ */
/* 1. CSS Custom Properties                                            */
/* ------------------------------------------------------------------ */
:root {
  --background:       oklch(0.08 0.005 240);
  --foreground:       oklch(0.97 0.01  120);
  --surface:          oklch(0.12 0.008 240);
  --muted:            oklch(0.16 0.008 240);
  --muted-foreground: oklch(0.62 0.02  240);
  --border:           oklch(0.22 0.01  240);
  --neon:             oklch(0.85 0.27  142);
  --neon-fg:          oklch(0.08 0.005 240);

  --shadow-neon: 0 0 40px oklch(0.85 0.27 142 / 0.4);
  --shadow-glow: 0 0 80px oklch(0.85 0.27 142 / 0.25);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* ------------------------------------------------------------------ */
/* 2. Reset & Base                                                     */
/* ------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--neon);
  color: var(--neon-fg);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------------ */
/* 3. Typography Utilities                                             */
/* ------------------------------------------------------------------ */
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.font-mono {
  font-family: var(--font-mono);
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* ------------------------------------------------------------------ */
/* 4. Color Utilities                                                   */
/* ------------------------------------------------------------------ */
.text-neon  { color: var(--neon); }
.text-muted { color: var(--muted-foreground); }
.bg-surface { background-color: var(--surface); }

/* ------------------------------------------------------------------ */
/* 5. Layout                                                           */
/* ------------------------------------------------------------------ */
.container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.site-main {
  min-height: 100vh;
}

/* ------------------------------------------------------------------ */
/* 6. Buttons                                                           */
/* ------------------------------------------------------------------ */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--neon);
  color: var(--neon-fg);
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: box-shadow 0.25s;
}

.btn-neon:hover {
  box-shadow: var(--shadow-neon);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: border-color 0.25s, color 0.25s;
}

.btn-outline:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn-outline-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--neon);
  color: var(--neon);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.25s, color 0.25s;
}

.btn-outline-neon:hover {
  background: var(--neon);
  color: var(--neon-fg);
}

/* ------------------------------------------------------------------ */
/* 7. Animations                                                        */
/* ------------------------------------------------------------------ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 20px oklch(0.85 0.27 142 / 0.4), 0 0 60px oklch(0.85 0.27 142 / 0.2); }
  50%       { box-shadow: 0 0 30px oklch(0.85 0.27 142 / 0.6), 0 0 100px oklch(0.85 0.27 142 / 0.4); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-up {
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-neon-pulse {
  animation: neon-pulse 3s ease-in-out infinite;
}

.hover-tilt {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-tilt:hover {
  transform: translateY(-6px);
}

/* Grain overlay */
.grain {
  position: relative;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------------ */
/* 8. Navigation                                                        */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
}

.site-header.scrolled {
  background: oklch(0.08 0.005 240 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--shadow-neon);
  animation: neon-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Desktop nav — wp_nav_menu() outputs <ul class="nav-menu"><li><a> */
.nav-desktop {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.nav-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a,
.nav-menu li.current-menu-ancestor > a {
  color: var(--foreground);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--neon);
  color: var(--neon-fg);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: box-shadow 0.25s;
}

.nav-cta:hover {
  box-shadow: var(--shadow-neon);
}

@media (min-width: 768px) {
  .nav-desktop { display: block; }
  .nav-cta     { display: inline-flex; }
  .nav-toggle  { display: none !important; }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — wp_nav_menu() outputs <ul class="mobile-nav-menu"><li><a> */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-menu li {
  list-style: none;
}

.mobile-nav-menu li a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item > a {
  color: var(--neon);
}

.mobile-cta {
  margin-top: 1.5rem;
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* 9. Hero                                                              */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--background) 0%,
    oklch(0.08 0.005 240 / 0.4) 50%,
    oklch(0.08 0.005 240 / 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 5rem;
  padding-top: 8rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--neon);
}

.hero-heading {
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 700;
  line-height: 0.85;
  text-wrap: balance;
}

.hero-heading em {
  font-style: italic;
  font-weight: 300;
}

.hero-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-sub {
  max-width: 28rem;
  font-size: 1.1rem;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: none;
}

@media (min-width: 768px) {
  .hero-content {
    padding-bottom: 7rem;
  }
  .hero-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .hero-scroll-hint {
    display: block;
  }
}

/* ------------------------------------------------------------------ */
/* 10. Marquee                                                          */
/* ------------------------------------------------------------------ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding-block: 1.5rem;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-inline: 0;
}

.marquee-sep {
  margin-inline: 2rem;
}

/* ------------------------------------------------------------------ */
/* 11. Services (home)                                                 */
/* ------------------------------------------------------------------ */
.section-services {
  padding-block: 8rem;
}

.section-header-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
}

.section-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

.section-heading em {
  font-style: italic;
  font-weight: 300;
}

@media (min-width: 768px) {
  .section-header-grid {
    grid-template-columns: 1fr 3fr;
    align-items: start;
  }
}

.services-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

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

.service-card {
  background: var(--background);
  padding: 2.5rem 3.5rem;
}

.service-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.service-arrow {
  opacity: 0;
  transition: opacity 0.3s;
}

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

.service-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ */
/* 12. Featured Work (home)                                            */
/* ------------------------------------------------------------------ */
.section-work {
  padding-block: 8rem;
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.work-all-link {
  display: none;
  transition: color 0.2s;
}

.work-all-link:hover {
  color: var(--neon);
}

@media (min-width: 768px) {
  .work-all-link { display: inline; }
}

.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.work-card {
  display: block;
}

.work-card--offset {
  margin-top: 0;
}

@media (min-width: 768px) {
  .work-card--offset {
    margin-top: 6rem;
  }
}

.work-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--background);
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.08 0.005 240 / 0.8), transparent 60%);
}

.work-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}

.work-card-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* 13. About Teaser (home)                                             */
/* ------------------------------------------------------------------ */
.section-about {
  padding-block: 8rem;
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 3rem;
  }
}

.about-body {
  margin-top: 2rem;
  font-size: 1.1rem;
  max-width: 36rem;
}

.about-text .btn-outline-neon {
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.stat-card {
  background: var(--background);
  padding: 2rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ------------------------------------------------------------------ */
/* 14. Sub-brands (home)                                               */
/* ------------------------------------------------------------------ */
.section-subbrands {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subbrands-grid {
  display: grid;
}

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

.subbrand-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
}

.subbrand-card:first-child {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .subbrand-card {
    padding: 5rem;
  }
  .subbrand-card:first-child {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.subbrand-bg-letter {
  position: absolute;
  bottom: -5rem;
  right: -2.5rem;
  font-size: 20rem;
  font-weight: 700;
  color: oklch(0.85 0.27 142 / 0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.subbrand-title {
  margin-top: 1rem;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
}

.subbrand-tagline {
  margin-top: 1rem;
  font-style: italic;
}

.subbrand-body {
  margin-top: 2rem;
  max-width: 28rem;
  opacity: 0.8;
}

.subbrand-link {
  display: inline-block;
  margin-top: 2.5rem;
  transition: color 0.2s;
}

.subbrand-link:hover {
  color: var(--neon);
}

/* ------------------------------------------------------------------ */
/* 15. Testimonials (home)                                             */
/* ------------------------------------------------------------------ */
.section-testimonials {
  padding-block: 8rem;
}

.testimonials-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

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

.testimonial-card {
  background: var(--background);
  padding: 2.5rem;
}

.testimonial-quote-mark {
  font-size: 3rem;
  line-height: 1;
}

.testimonial-body {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  text-wrap: balance;
}

.testimonial-caption {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.testimonial-who {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* 16. Footer                                                           */
/* ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: 8rem;
}

.footer-inner {
  padding-block: 5rem;
}

/* 4-column footer grid: About | Studio | Sub-brands | Social */
.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
}

.footer-about-col .btn-outline-neon,
.footer-cta-col  .btn-outline-neon {
  margin-top: 2rem;
}

/* Widget area wrapper reset */
.footer-widget { width: 100%; }

.footer-label {
  margin-bottom: 1rem;
  font-size: .7rem;
  letter-spacing: .1em;
  color: oklch(0.62 0.02 240);
}

/* Handles both wp_nav_menu() <ul> and plain <ul> */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-nav-list li { list-style: none; }

.footer-nav-list li a,
.footer-nav-list li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  transition: color .2s;
}

.footer-nav-list li a:hover { color: var(--neon); }

/* ── Social icons (SVG) ── */
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid oklch(0.28 0.01 240);
  color: oklch(0.62 0.02 240);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}

.footer-social-icon:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: oklch(0.85 0.27 142 / .08);
}

.footer-social-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* Legacy text-link social (contact page aside) */
.footer-social { display: flex; gap: .75rem; }
.social-link   { font-family: var(--font-mono); font-size: .85rem; transition: color .2s; }
.social-link:hover { color: var(--neon); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------------ */
/* 17. Inner Page Hero                                                  */
/* ------------------------------------------------------------------ */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.page-heading {
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  text-wrap: balance;
}

.page-heading em {
  font-style: italic;
  font-weight: 300;
}

.page-sub {
  margin-top: 2rem;
  max-width: 40rem;
  font-size: 1.1rem;
}

/* ------------------------------------------------------------------ */
/* 18. About Page                                                       */
/* ------------------------------------------------------------------ */
.about-hero-img {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

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

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent);
}

.about-story-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 8rem;
}

@media (min-width: 768px) {
  .about-story-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.about-story-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

.about-vm {
  padding-block: 8rem;
}

.about-vm-grid {
  display: grid;
  gap: 2.5rem;
}

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

.about-vm-heading {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
}

.section-values {
  padding-block: 8rem;
}

.values-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

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

.value-card {
  background: var(--background);
  padding: 2.5rem;
}

.value-title {
  margin-top: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.value-card p {
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------------ */
/* 19. Services Page                                                    */
/* ------------------------------------------------------------------ */
.services-row-section {
  padding-block: 6rem;
}

.services-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .services-row {
    grid-template-columns: 1fr 1fr;
  }
  .services-row--flip .services-row-img {
    order: 2;
  }
  .services-row--flip .services-row-content {
    order: 1;
  }
}

.services-row-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.services-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-row-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.services-row-divider {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--border);
}

.services-row-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
}

.services-row-intro {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  max-width: 28rem;
}

.services-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid oklch(0.22 0.01 240 / 0.5);
}

.services-star {
  font-size: 0.85rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* 20. Portfolio Page                                                   */
/* ------------------------------------------------------------------ */
.portfolio-filter-wrap {
  margin-bottom: 3rem;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.filter-btn--active {
  background: var(--neon);
  color: var(--neon-fg);
  border-color: var(--neon);
}

.portfolio-grid-section {
  padding-bottom: 8rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

.portfolio-card {
  display: block;
}

.portfolio-card--offset {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .portfolio-card--offset {
    margin-top: 4rem;
  }
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.portfolio-card-hover {
  position: absolute;
  inset: 0;
  background: oklch(0.08 0.005 240 / 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.portfolio-card-hover span {
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-card-hover {
  background: oklch(0.08 0.005 240 / 0.6);
}

.portfolio-card:hover .portfolio-card-hover span {
  opacity: 1;
}

.portfolio-card-meta {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.portfolio-card-sub {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------------ */
/* 21. Contact Page                                                     */
/* ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: 8rem;
}

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

.contact-info-block + .contact-info-block {
  margin-top: 2.5rem;
}

.contact-link {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--neon);
}

.contact-location {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-form-wrap {
  border: 1px solid var(--border);
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-form-wrap {
    padding: 3rem;
  }
}

.contact-success {
  padding-block: 5rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  border-color: var(--neon);
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip:hover {
  border-color: var(--neon);
}

.chip--active {
  background: var(--neon);
  color: var(--neon-fg);
  border-color: var(--neon);
}

.contact-error {
  font-size: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.contact-submit {
  align-self: flex-start;
  padding: 1rem 2rem;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* 22. 404 Page                                                         */
/* ------------------------------------------------------------------ */
.not-found-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

/* ------------------------------------------------------------------ */
/* 23. Custom Logo (Appearance › Customize › Site Identity)            */
/* ------------------------------------------------------------------ */
.nav-logo--image {
  display: flex;
  align-items: center;
}

/* the_custom_logo() outputs <a class="custom-logo-link"><img class="custom-logo"> */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  display: block;
  max-height: 2.5rem;  /* cap logo height so it fits the 5rem nav bar */
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* 24. Elementor Compatibility                                          */
/* ------------------------------------------------------------------ */

/* Ensure Elementor full-width sections reach the viewport edges */
.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}

/* Give Elementor page content the correct top offset so it clears the fixed nav */
.elementor-page .elementor:first-child > .elementor-section:first-child,
.elementor-page .elementor:first-child > .e-container:first-child,
.elementor-page .elementor:first-child > .e-flex:first-child {
  padding-top: 5rem; /* matches nav height */
}

/* Let Elementor override body background/color if it sets its own */
.elementor-page {
  background-color: var(--background);
  color: var(--foreground);
}

/* ─── Contact Form 7 — theme styles ─────────────────────────────────────── */

/* Force dark colour scheme so browser UA stylesheet doesn't add white backgrounds */
.wpcf7 form { color-scheme: dark; width: 100%; }

/* ── CF7 auto-adds <p> around label+input pairs. display:contents dissolves
   that box so our own flex/grid containers work correctly. ── */
.cf7-group > p,
.cf7-service-group > p { display: contents; }
.cf7-group > p > br,
.cf7-service-group > p > br { display: none; }

/* ── Layout ── */
.cf7-service-group { margin-bottom: 1.75rem; }

.cf7-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .cf7-row { grid-template-columns: 1fr; } }

/* ── Labels ── */
.cf7-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: oklch(0.62 0.02 240);
}

/* ── Inputs & textarea ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background-color: var(--background) !important;
  border: 1px solid oklch(0.28 0.01 240) !important;
  border-radius: 0 !important;
  color: var(--foreground) !important;
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.5;
  padding: .8rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--neon) !important;
  box-shadow: 0 0 0 3px oklch(0.85 0.27 142 / .1);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: oklch(0.4 0.01 240);
}

/* ── Select ── */
.wpcf7 select {
  width: 100%;
  background-color: var(--background) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='oklch(0.85 0.27 142)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  border: 1px solid oklch(0.28 0.01 240) !important;
  border-radius: 0 !important;
  color: var(--foreground) !important;
  font-family: var(--font-mono);
  font-size: .875rem;
  padding: .8rem 2.5rem .8rem 1rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.wpcf7 select:focus { border-color: var(--neon) !important; }

/* ── Validation states ── */
.wpcf7 .wpcf7-not-valid {
  border-color: oklch(0.55 0.2 25) !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: oklch(0.65 0.2 25);
  margin-top: .4rem;
}

/* ── Submit button ── */
.wpcf7 input[type="submit"] {
  cursor: pointer;
  border: none !important;
  background: var(--neon) !important;
  color: var(--neon-fg) !important;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  margin-top: .5rem;
  outline: none;
  transition: opacity .2s;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="submit"]:hover { opacity: .85; }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

/* ── Response messages ── */
.wpcf7 .wpcf7-response-output {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .75rem 1rem;
  margin-top: 1rem;
  border-width: 1px;
  border-style: solid;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--neon);
  color: var(--neon);
  background: transparent;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: oklch(0.55 0.2 25);
  color: oklch(0.65 0.2 25);
  background: transparent;
}
.wpcf7-spinner { display: none !important; }

/* Portfolio card placeholder when no image set */
.portfolio-card-placeholder {
  width: 100%;
  padding-bottom: 125%;
  background: var(--surface);
  position: relative;
}
.portfolio-card-placeholder::after {
  content: 'No image';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: oklch(0.45 0.01 240);
}
.portfolio-card-img { display: block; text-decoration: none; }

/* ─── Elementor-compatible custom properties ─────────────────────────────── */

/* Expose design tokens as Elementor-compatible custom properties
   so widgets that use var(--e-global-*) can reference our palette */
:root {
  --e-global-color-primary:   oklch(0.85 0.27 142); /* neon green */
  --e-global-color-secondary: oklch(0.97 0.01 120); /* foreground */
  --e-global-color-text:      oklch(0.62 0.02 240); /* muted */
  --e-global-color-accent:    oklch(0.12 0.008 240); /* surface */
}
