/*
Theme Name: Phoenitech
Theme URI: https://phoenitech.net
Author: Phoenitech
Author URI: https://phoenitech.net
Description: Dark studio theme for Phoenitech. Software, mobile, web, and AI, with the Koura studio contact details on the page.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.8
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: phoenitech
*/

:root {
  --bg: #050506;
  --bg-raise: #09090b;
  --text: #ececef;
  --muted: #a7a7b1;
  --line: rgba(255, 255, 255, 0.12);
  --silver: #e7e7ee;
  --header-h: 76px;
  --display: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #3a3a42 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

body.admin-bar {
  --wp-admin: 32px;
}

img,
svg,
object {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

::selection {
  background: #ececf1;
  color: #111216;
}

:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(var(--wp-admin, 0px) + 0.75rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--wp-admin, 0px) + 12px);
}

.site-header {
  position: fixed;
  top: var(--wp-admin, 0px);
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1440px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: auto;
  height: 46px;
  display: block;
}

.brand-name,
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}

.brand-name {
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  padding-left: 0.24em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  position: relative;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

.nav-list a,
.header-phone {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}

.nav-list a {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-list a:hover,
.header-phone:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: #fff;
}

.header-phone {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.nav-list li {
  position: relative;
}

.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 11rem;
  list-style: none;
  background: #0c0c0f;
  border: 1px solid var(--line);
  padding: 0.4rem 0;
  z-index: 5;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  display: block;
}

.nav-list .sub-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  letter-spacing: 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn:hover,
.btn-solid {
  background: var(--silver);
  border-color: var(--silver);
  color: #121316;
}

.btn-solid:hover {
  background: #fff;
  border-color: #fff;
}

.hero {
  background: #000;
  margin: 0;
  padding: 0;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.studio-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 1.8rem;
  min-height: 4.5rem;
  padding: 0.85rem 1.25rem;
  background: #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.studio-bar a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.studio-bar a:hover {
  color: #fff;
}

.circuit-float,
.globe-float,
.wave-float,
.code-float,
.skyline-float {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.circuit-float,
.globe-float,
.wave-float {
  display: block;
  height: auto;
}

.circuit-float {
  z-index: 0;
  left: 0;
  top: 8vh;
  width: min(28vw, 340px);
  opacity: 0.28;
}

.globe-float {
  z-index: 0;
  width: min(44vw, 560px);
  right: -12%;
  top: 4vh;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 80%, transparent 100%);
}

.wave-float {
  z-index: 0;
  left: -4vw;
  bottom: 4vh;
  width: min(46vw, 640px);
  opacity: 0.9;
  mask-image: linear-gradient(90deg, #000 30%, transparent 92%);
}

.code-float {
  z-index: 2;
  left: max(1.25rem, 3.2vw);
  top: 18vh;
  margin: 0;
  width: 15rem;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.34);
  white-space: pre;
}

.skyline-float {
  z-index: 1;
  right: -4vw;
  bottom: -4vh;
  width: min(40vw, 560px);
  opacity: 0.92;
}

.skyline-float svg,
.globe-float img,
.wave-float img,
.circuit-float img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-center {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 1rem) 1.25rem 7.5rem;
}

.hero-mark {
  width: min(30vh, 210px);
  height: auto;
}

.wordmark {
  margin-top: 1.15rem;
  font-size: clamp(1.7rem, 4.1vw, 3.2rem);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}

.discipline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.15rem;
  margin-top: 0.95rem;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.discipline span:not(:last-child)::after {
  content: "|";
  margin-left: 0.7rem;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

.tagline {
  margin-top: 1.05rem;
  max-width: 28rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.hero-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.45rem;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}

.hero-address a {
  text-decoration: none;
}

.hero-address a:hover {
  color: #fff;
}

.hero-address .addr {
  max-width: 34rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.text-cta {
  display: inline-block;
  margin-top: 1.3rem;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  padding-bottom: 0.18rem;
}

.text-cta:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hero-foot {
  position: absolute;
  z-index: 4;
  left: max(1.25rem, 3.2vw);
  bottom: 4.5vh;
}

.pillars {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin-bottom: 0.85rem;
}

.pillars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.2rem;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--display);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motto {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.motto span:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  letter-spacing: 0;
}

.section {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.eyebrow {
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.section h2,
.page-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.25;
}

.section-lead {
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--muted);
}

.service-grid,
.approach-grid {
  display: grid;
  gap: 1px;
  list-style: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.approach-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid li,
.approach-grid li {
  background: var(--bg-raise);
  padding: 1.6rem 1.3rem 1.5rem;
}

.service-grid h3,
.approach-grid h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin: 1rem 0 0.7rem;
}

.service-grid p,
.approach-grid p {
  color: var(--muted);
  font-size: 0.98rem;
}

.step {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.studio-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
}

.studio-list div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.studio-list dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.28rem;
}

.studio-list a {
  text-decoration: none;
  color: var(--text);
}

.studio-list a:hover {
  color: #fff;
}

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

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

.field label,
.form-row label,
.form-grid label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 0.85rem 0.9rem;
  border-radius: 0;
  font-size: 1rem;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
}

::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.form-grid .btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-tag,
.footer-contact,
.footer-base {
  color: rgba(255, 255, 255, 0.58);
}

.footer-tag {
  margin-top: 0.7rem;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.wordmark-sm {
  font-size: 1rem;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover,
.footer-motto {
  color: #fff;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.page-hero {
  padding: calc(var(--header-h) + var(--wp-admin, 0px) + 4.2rem) 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.page-content {
  padding: 2.4rem 0 4.5rem;
}

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2rem;
}

.prose a {
  color: #fff;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.post-list {
  display: grid;
  gap: 1px;
  margin: 2rem auto 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-card {
  background: var(--bg-raise);
  padding: 1.45rem 1.3rem;
}

.post-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #fff;
}

.post-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.pagination {
  margin: 1.4rem 0 3.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.page-numbers.current {
  background: var(--silver);
  color: #121316;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  max-width: 32rem;
}

.search-form input {
  flex: 1;
}

.empty-state {
  padding: 2rem 0 4rem;
  color: var(--muted);
}

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

@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }

  .code-float,
  .circuit-float {
    display: none;
  }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .globe-float {
    opacity: 0.55;
    width: min(70vw, 420px);
    right: -18%;
    top: -4%;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--wp-admin, 0px) 0 0 0;
    background: rgba(5, 5, 6, 0.97);
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.35rem;
  }

  .nav-list a {
    font-size: 0.95rem;
  }

  .nav-list .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
    padding: 0.3rem 0 0;
    min-width: 0;
  }

  .header-phone {
    display: block;
  }
}

@media (max-width: 760px) {
  .wave-float,
  .skyline-float {
    display: none;
  }

  .brand-mark {
    height: 36px;
  }

  .brand-name {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    padding-left: 0.12em;
  }

  .hero {
    min-height: 0;
    height: auto;
  }

  .hero-art {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .studio-bar {
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
    padding: 1rem 1.15rem 1.15rem;
  }

  .studio-bar a {
    letter-spacing: 0.02em;
    line-height: 1.45;
  }

  .hero-foot {
    position: static;
    padding: 0 1.25rem 2.4rem;
    text-align: center;
  }

  .hero-center {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.2rem);
    padding-bottom: 1.5rem;
  }

  .pillars {
    justify-content: center;
  }

  .globe-float {
    opacity: 0.28;
  }
}

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

  .search-form {
    flex-direction: column;
  }

  .hero-mark {
    width: 128px;
  }

  .wordmark {
    letter-spacing: 0.28em;
    padding-left: 0.28em;
  }

  .tagline,
  .discipline {
    letter-spacing: 0.12em;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero-mark {
    width: min(22vh, 150px);
  }

  .hero-center {
    padding-bottom: 6.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    transition: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-foot,
  .code-float,
  .contact-form,
  .text-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero-center {
    min-height: auto;
    color: #111;
  }

  a {
    color: #111;
  }
}
