/*
Theme Name: Joy Koch
Theme URI: https://joykoch.com/
Author: Joy Koch
Author URI: https://joykoch.com/
Description: A dark premium lead-generation theme for AI and cybersecurity consulting.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joykoch
Tags: custom-logo, custom-menu, featured-images, one-column
*/

:root {
  --graphite: #24272A;
  --deep-ink: #1B1D1F;
  --steel: #6F7780;
  --light-ash: #F2F3F4;
  --warm-white: #FAFAF7;
  --accent: #FF6B00;
  --accent-dark: #D94A00;
  --risk-red: #B83232;
  --surface: #202326;
  --surface-soft: #2B2F33;
  --line: rgba(250, 250, 247, 0.12);
  --line-strong: rgba(250, 250, 247, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max: 1180px;
  --radius: 8px;
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep-ink);
  color: var(--light-ash);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(255, 107, 0, 0.8);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--warm-white);
}

h1,
h2,
h3,
p,
li,
a,
span,
strong {
  overflow-wrap: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

::selection {
  background: var(--accent);
  color: var(--deep-ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--deep-ink);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(27, 29, 31, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.section__inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--warm-white);
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 107, 0, 0.55);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 900;
}

.brand__text {
  display: grid;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  white-space: nowrap;
}

.brand__positioning {
  color: var(--steel);
  font-size: 0.78rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(250, 250, 247, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--warm-white);
  background: rgba(250, 250, 247, 0.06);
}

.nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-cta {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--warm-white);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button,
.wp-block-button__link,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: var(--deep-ink);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--accent-dark);
  color: var(--warm-white);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--warm-white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.1);
  color: var(--warm-white);
}

.main {
  min-height: 70vh;
  overflow-x: clip;
}

.section {
  padding: 76px 0;
}

.section--hero {
  padding-top: 86px;
  background:
    linear-gradient(145deg, rgba(255, 107, 0, 0.08), transparent 36%),
    linear-gradient(180deg, var(--deep-ink) 0%, var(--graphite) 100%);
}

.section--soft {
  background: var(--graphite);
}

.section--light {
  background: var(--warm-white);
  color: var(--deep-ink);
}

.section--tight {
  padding: 48px 0;
}

.section-label {
  margin: 0 0 12px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title,
.page-title,
.hero-title,
h1,
h2,
h3 {
  margin: 0;
  color: var(--warm-white);
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.section--light .section-title,
.section--light .page-title,
.section--light h2,
.section--light h3 {
  color: var(--deep-ink);
}

.hero-title,
.page-title {
  max-width: 820px;
  font-size: 3.8rem;
}

.section-title {
  max-width: 760px;
  font-size: 2.3rem;
}

.lede {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(250, 250, 247, 0.78);
  font-size: 1.12rem;
}

.section--light .lede,
.section--light p,
.section--light li {
  color: rgba(27, 29, 31, 0.76);
}

.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 44px;
  align-items: center;
}

.hero-grid > *,
.split-grid > *,
.contact-grid > *,
.card-grid > *,
.service-grid > *,
.case-grid > *,
.post-grid > *,
.metric-row > *,
.field-grid > * {
  min-width: 0;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 250, 247, 0.04);
}

.metric strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(250, 250, 247, 0.72);
  font-weight: 700;
}

.visual-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151719;
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-slot {
  display: grid;
  min-height: 420px;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(250, 250, 247, 0.08), rgba(250, 250, 247, 0.02)),
    var(--surface);
  color: rgba(250, 250, 247, 0.72);
}

.image-slot span {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
}

.image-slot strong {
  color: var(--warm-white);
  word-break: break-word;
}

.image-slot small {
  color: var(--steel);
}

.card-grid,
.service-grid,
.case-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-grid--two,
.case-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.case-card,
.post-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 250, 247, 0.04);
}

.section--light .card,
.section--light .service-card,
.section--light .case-card,
.section--light .post-card,
.section--light .panel {
  border-color: rgba(27, 29, 31, 0.12);
  background: #ffffff;
}

.card,
.service-card,
.case-card,
.post-card {
  padding: 24px;
}

.card h3,
.service-card h2,
.service-card h3,
.case-card h2,
.case-card h3,
.post-card h2,
.post-card h3,
.panel h3 {
  font-size: 1.18rem;
}

.card p,
.service-card p,
.case-card p,
.post-card p,
.panel p {
  margin: 12px 0 0;
  color: rgba(250, 250, 247, 0.72);
}

.service-card ul,
.case-card ul,
.check-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: rgba(250, 250, 247, 0.76);
}

.service-card li,
.case-card li,
.check-list li {
  margin: 8px 0;
}

.eyebrow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(255, 107, 0, 0.14);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 900;
}

.problem-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.problem-item {
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(250, 250, 247, 0.04);
}

.problem-item strong {
  display: block;
  color: var(--warm-white);
  font-family: var(--font-head);
}

.problem-item span {
  display: block;
  margin-top: 6px;
  color: rgba(250, 250, 247, 0.72);
}

.page-hero {
  padding: 72px 0 54px;
  background: var(--deep-ink);
}

.breadcrumbs {
  margin: 0 0 14px;
  color: var(--steel);
  font-weight: 700;
}

.quote-panel {
  padding: 30px;
  border-left: 4px solid var(--accent);
  background: rgba(250, 250, 247, 0.04);
}

.quote-panel p {
  margin: 0;
  color: var(--warm-white);
  font-size: 1.22rem;
  font-weight: 700;
}

.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.topic-filter span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(250, 250, 247, 0.72);
  font-weight: 700;
}

.post-card__meta,
.case-card__meta {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 250, 247, 0.04);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--warm-white);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #151719;
  color: var(--warm-white);
  padding: 12px 13px;
  outline: none;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16);
}

.form-consent label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(250, 250, 247, 0.74);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-consent a {
  color: var(--warm-white);
}

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

.notice {
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.notice--success {
  border: 1px solid rgba(255, 107, 0, 0.34);
  background: rgba(255, 107, 0, 0.12);
  color: var(--warm-white);
}

.notice--error {
  border: 1px solid rgba(184, 50, 50, 0.5);
  background: rgba(184, 50, 50, 0.12);
  color: var(--warm-white);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #151719;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-title {
  margin: 0;
  color: var(--warm-white);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-copy {
  margin: 12px 0 0;
  color: rgba(250, 250, 247, 0.68);
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links a {
  color: rgba(250, 250, 247, 0.7);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--warm-white);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.footer-bottom__inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: 18px 0;
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 1080px) {
  .site-header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 0 0;
    display: none;
    height: calc(100vh - 68px);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px max(24px, env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line);
    background: var(--deep-ink);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: grid;
    gap: 8px;
    align-content: start;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding-inline: 14px;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .page-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .metric-row,
  .card-grid,
  .service-grid,
  .service-grid--two,
  .case-grid,
  .case-grid--two,
  .post-grid,
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 1080px) {
    .site-nav {
      height: calc(100dvh - 68px);
      max-height: calc(100dvh - 68px);
    }
  }
}

@media (max-width: 680px) {
  .site-header__inner,
  .site-footer__inner,
  .section__inner,
  .footer-bottom__inner {
    width: min(100% - 24px, var(--max));
  }

  .brand__positioning {
    display: none;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .section {
    padding: 54px 0;
  }

  .section--hero {
    padding-top: 58px;
  }

  .hero-title,
  .page-title {
    font-size: 2.2rem;
    line-height: 1.12;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .wp-block-button__link,
  button.button {
    width: 100%;
  }

  .metric-row,
  .card-grid,
  .service-grid,
  .service-grid--two,
  .case-grid,
  .case-grid--two,
  .post-grid,
  .field-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .visual-frame img,
  .image-slot {
    min-height: 280px;
  }

  .card,
  .service-card,
  .case-card,
  .post-card,
  .contact-form {
    padding: 20px;
  }

  .site-footer__inner {
    gap: 22px;
  }
}

@media (max-width: 420px) {
  .site-header__inner,
  .site-footer__inner,
  .section__inner,
  .footer-bottom__inner {
    width: min(100% - 20px, var(--max));
  }

  .site-header__inner {
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .section {
    padding: 46px 0;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .hero-title,
  .page-title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .metric strong {
    font-size: 1.65rem;
  }

  .card,
  .service-card,
  .case-card,
  .post-card,
  .contact-form,
  .quote-panel {
    padding: 16px;
  }

  .visual-frame img,
  .image-slot {
    min-height: 230px;
  }

  .form-field textarea {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
