/*
Theme Name: Nova Field
Theme URI: https://novafield.studio
Author: Nova Field Studio
Author URI: https://novafield.studio
Description: A dark, editorial digital-marketing-agency theme with a bold display type system, glass/orb hero, and card-based work & blog grids. Built to be extended with Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: nova-field
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --radius: 0.5rem;
  --background: oklch(0.09 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.14 0.005 265);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.14 0.005 265);
  --primary: oklch(0.55 0.24 264);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.2 0.01 265);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.18 0.008 265);
  --muted-foreground: oklch(0.68 0.015 265);
  --accent: oklch(0.55 0.24 264);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.63 0.24 27);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.55 0.24 264);

  --grid-line: oklch(1 0 0 / 6%);
  --glow: 0 0 80px oklch(0.55 0.24 264 / 35%);
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, blockquote, figure {
  margin: 0;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

section {
  padding-block: clamp(3rem, 8vw, 7rem);
}

/* =========================================================
   3. UTILITIES (ported from the Tailwind v4 @utility layer)
   ========================================================= */
.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--grid-line) 0 1px,
    transparent 1px 12.5%
  );
}

.display-xl {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.display-md {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: inline-block;
}

.stat-outline {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--foreground);
}

.orb-glow {
  filter: drop-shadow(var(--glow));
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
.floaty {
  animation: float-slow 9s ease-in-out infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 28s linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   4. HEADER + NAV
   ========================================================= */
header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.75rem;
}

.site-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-self: start;
}
.site-social a {
  color: var(--foreground);
  opacity: 0.75;
  display: inline-flex;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-social a:hover {
  opacity: 1;
  color: var(--primary);
}

.brand-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  color: var(--foreground);
}
.brand-logo img {
  height: 32px;
  width: auto;
}

/* Circular rotating "MENU" toggle button */
.menu-toggle {
  justify-self: end;
  position: relative;
  width: var(--menu-size, 64px);
  height: var(--menu-size, 64px);
  border-radius: 50%;
  border: 1px solid var(--menu-border-color, var(--border));
  background: none;
  color: var(--menu-plus-color, var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.menu-toggle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--menu-ring-color, var(--foreground));
  animation: spin-slow 10s linear infinite;
}
.menu-toggle:hover .menu-toggle-ring {
  animation-duration: 4s;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.menu-toggle-plus {
  position: relative;
  width: 13px;
  height: 13px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.menu-toggle-plus::before,
.menu-toggle-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.menu-toggle-plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.menu-toggle-plus::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.menu-toggle.is-open .menu-toggle-plus {
  transform: rotate(45deg);
}

header > .eyebrow {
  display: none;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span {
  color: var(--primary);
}

nav#nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
nav#nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
nav#nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
nav#nav a {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
nav#nav a:hover {
  color: var(--primary);
}
nav#nav .eyebrow {
  color: var(--primary);
}

.nav-close {
  position: absolute;
  top: clamp(1.25rem, 4vw, 2.5rem);
  right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-close:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(90deg);
}
.nav-close span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.nav-close span:first-child {
  transform: rotate(45deg);
}
.nav-close span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .site-social { gap: 0.85rem; }
  .menu-toggle { width: 54px; height: 54px; }
}


/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-solid:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.hero-img {
  display: flex;
  justify-content: center;
}
.hero-img .orb {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  border-radius: 50%;
  object-fit: cover;
}
.hero-copy p {
  margin-top: 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-copy p span {
  color: var(--foreground);
}

/* =========================================================
   7. LOGOS
   ========================================================= */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos .label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.logos .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--muted-foreground);
  opacity: 0.8;
}

/* =========================================================
   8. SERVICES
   ========================================================= */
.lead {
  max-width: 46rem;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--muted-foreground);
  letter-spacing: -0.01em;
}
.lead strong {
  color: var(--foreground);
  font-weight: 600;
}
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.services-grid article {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.services-grid .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.services-grid h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.services-grid p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   9. WORK / BLOG CARD GRIDS
   ========================================================= */
.work-grid,
.blog-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.card .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--muted);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .thumb img {
  transform: scale(1.05);
}
.card h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.card > p {
  margin-top: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* =========================================================
   10. QUOTE
   ========================================================= */
.quote blockquote {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
.quote .display-md {
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.quote footer {
  margin-top: 1.75rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* =========================================================
   11. STATS
   ========================================================= */
.stats-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}
@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stats-grid .label {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* =========================================================
   12. APP
   ========================================================= */
.app {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 900px) {
  .app {
    grid-template-columns: 1fr 1fr;
  }
}
.app p {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  max-width: 30rem;
  line-height: 1.6;
}
.app .store {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* =========================================================
   13. FOOTER
   ========================================================= */
footer.site {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 8vw, 6rem) 2.5rem;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 700px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.pill {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.offices {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.offices .city {
  font-weight: 600;
}
.offices .addr {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.contact-list p {
  margin-bottom: 0.5rem;
}
.contact-list a:hover {
  color: var(--primary);
}
.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-bottom .links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom .links a:hover {
  color: var(--primary);
}

/* =========================================================
   14. WORDPRESS CORE / A11Y HELPERS
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.alignwide { max-width: 1320px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
