/*
Theme Name: OW Agency
Theme URI: https://operateworldwide.com
Author: Operate Worldwide
Author URI: https://operateworldwide.com
Description: A minimalist agency WordPress theme inspired by dark, editorial design. Features a full-screen animated hero, Unbounded headings with wide letter-spacing, Mulish body text, and clean white content sections with generous whitespace. WooCommerce compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ow-agency
Tags: agency, portfolio, minimalist, dark, woocommerce-support
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --c-dark:       #0a0a0a;
  --c-dark-2:     #111111;
  --c-dark-3:     #1f1f1f;
  --c-dark-4:     #121212;
  --c-dark-5:     #333333;
  --c-white:      #ffffff;
  --c-off-white:  #faf9f5;
  --c-body:       #4a4a4a;
  --c-heading:    #111111;
  --c-muted:      #d3d3d3;
  --c-subtle:     #adadad;
  --c-border:     #e5e5e5;
  --c-border-dark: rgba(255,255,255,0.12);

  /* Typography */
  --f-heading: 'Unbounded', sans-serif;
  --f-body:    'Mulish', sans-serif;
  --f-ui:      'Manrope', sans-serif;

  /* Sizes */
  --fs-base:   17px;
  --lh-base:   1.72;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;
  --sp-2xl: 10rem;

  /* Layout */
  --nav-h:      72px;
  --max-w:      1280px;
  --max-w-text: 800px;
  --gutter:     2rem;

  /* Radius */
  --r-sm:   4px;
  --r-pill: 30px;

  /* Transitions */
  --ease: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Letter spacing */
  --ls-wide:  0.12em;
  --ls-wider: 0.22em;
  --ls-widest: 0.35em;
}

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

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: var(--lh-base);
  color: var(--c-body);
  background-color: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--ease);
}

ul, ol {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  color: var(--c-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: 1rem; font-weight: 500; }
h5 { font-size: 0.9rem; font-weight: 500; }
h6 { font-size: 0.8rem; font-weight: 500; }

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: var(--lh-base);
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content ol { list-style: decimal; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--max-w-text);
}

.section-pad {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}

.section-pad--sm {
  padding-top: var(--sp-lg);
  padding-bottom: var(--sp-lg);
}

.text-center { text-align: center; }
.text-white  { color: var(--c-white); }
.text-muted  { color: var(--c-muted); }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-subtle);
  display: block;
  margin-bottom: 1.25rem;
}

.eyebrow--white {
  color: rgba(255,255,255,0.55);
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.section-divider::before {
  content: '';
  display: block;
  width: 1px;
  height: 64px;
  background-color: var(--c-border);
}

.section-divider--dark::before {
  background-color: var(--c-border-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-sm);
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--outline-white {
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
}

.btn--outline-white:hover {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
}

.btn--outline-dark {
  color: var(--c-dark);
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
}

.btn--outline-dark:hover {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}

.btn--solid-dark {
  background: var(--c-dark-2);
  color: var(--c-white);
  border: 1px solid var(--c-dark-2);
}

.btn--solid-dark:hover {
  background: var(--c-dark-3);
  border-color: var(--c-dark-3);
}

.btn--pill {
  border-radius: var(--r-pill);
}

/* Arrow icon */
.btn .arrow {
  font-size: 1em;
  transition: transform var(--ease);
}

.btn:hover .arrow {
  transform: translate(3px, -3px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--ease), backdrop-filter var(--ease);
}

#site-header.is-transparent {
  background: rgba(10, 10, 10, 0.0);
}

#site-header.is-scrolled,
#site-header.is-dark {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Always dark on non-hero pages */
body:not(.home) #site-header {
  background: rgba(10, 10, 10, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-logo-text {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-text .logo-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* Primary menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.primary-nav > li {
  position: relative;
}

.primary-nav > li > a {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--ease);
  display: block;
  position: relative;
}

.primary-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-white);
  transition: width var(--ease);
}

.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a {
  color: var(--c-white);
}

.primary-nav > li > a:hover::after,
.primary-nav > li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-sm);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--ease);
  z-index: 100;
}

.primary-nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: calc(100% + 0.5rem);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}

.primary-nav .sub-menu li a:hover {
  color: var(--c-white);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cta:hover {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--c-white);
  transition: all var(--ease);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #080808;
  /* Static grain: rendered once, zero runtime cost */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  overflow: hidden;
}

/* Shared absolute-fill layer base */
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Vignette overlay — edge darkening + top/bottom fade */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 100%);
}

/* (wave element removed — handled by smoke SVG layer) */

.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--sp-lg) var(--gutter);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
  display: block;
}

/* Rotating headline container */
.hero-title-wrap {
  height: clamp(3.5rem, 7vw, 4rem);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.75rem;
}

.hero-title-rotating {
  display: block;
  position: relative;
}

.hero-title-rotating .headline-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: var(--f-heading);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  opacity: 0;
  transform: translateY(28px);
  animation: heroTextCycle 16s infinite;
}

.hero-title-rotating .headline-item:nth-child(1) { animation-delay: 0s; }
.hero-title-rotating .headline-item:nth-child(2) { animation-delay: 4s; }
.hero-title-rotating .headline-item:nth-child(3) { animation-delay: 8s; }
.hero-title-rotating .headline-item:nth-child(4) { animation-delay: 12s; }

@keyframes heroTextCycle {
  0%   { opacity: 0; transform: translateY(28px); }
  5%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  27%  { opacity: 0; transform: translateY(-24px); }
  100% { opacity: 0; transform: translateY(-24px); }
}

.hero-sub {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-top: 2rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 0.85; }
}

/* ============================================================
   ABOUT / TAGLINE SECTION
   ============================================================ */
.about-section {
  background: var(--c-white);
  padding-top: 7rem;
  padding-bottom: 7rem;
  text-align: center;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.about-heading {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--c-heading);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.about-body {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-body);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--c-border);
}

.about-stat-number {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-heading);
  letter-spacing: var(--ls-wide);
  display: block;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-subtle);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--c-off-white);
  padding: 7rem 0;
}

.services-header {
  text-align: center;
  margin-bottom: 5rem;
}

.services-heading {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
}

.service-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--ease);
}

.service-item:hover {
  background: var(--c-white);
}

.service-item:nth-child(3n) {
  border-right: none;
}

.service-number {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-subtle);
  display: block;
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: 1rem;
}

.service-desc {
  font-family: var(--f-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--c-subtle);
}

/* ============================================================
   DARK FEATURE SECTION
   ============================================================ */
.feature-dark-section {
  background: var(--c-dark-3);
  padding: 8rem 0;
  text-align: center;
}

.feature-dark-heading {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.feature-dark-body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   TEAM / ABOUT SPLIT SECTION
   ============================================================ */
.team-section {
  padding: 7rem 0;
  background: var(--c-white);
}

.team-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.team-text-side {
  /* left col */
}

.team-image-side {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-off-white);
}

.team-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-heading {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.team-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-body);
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--c-dark);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,255,255,0.035) 0%, transparent 70%);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-family: var(--f-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--c-dark-2);
  color: rgba(255,255,255,0.55);
  padding: 5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--c-border-dark);
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
}

.footer-col-title {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}

.footer-col ul li a:hover {
  color: var(--c-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--f-ui);
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  font-size: 0.78rem;
  font-family: var(--f-ui);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color var(--ease);
}

.footer-social a:hover {
  color: var(--c-white);
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.page-hero {
  background: var(--c-dark);
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4rem;
}

.page-hero-inner {
  width: 100%;
}

.page-title {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1.1;
}

.page-meta {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.post-body {
  padding: 5rem 0 7rem;
}

.post-body .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--c-body);
  max-width: 740px;
  margin: 0 auto;
}

/* ============================================================
   BLOG ARCHIVE
   ============================================================ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-border);
}

.post-card {
  background: var(--c-white);
  padding: 2.5rem;
  transition: background var(--ease);
}

.post-card:hover {
  background: var(--c-off-white);
}

.post-card-cat {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-subtle);
  display: block;
  margin-bottom: 1rem;
}

.post-card-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-subtle);
  margin-bottom: 1.5rem;
}

.post-card-date {
  font-family: var(--f-ui);
  font-size: 0.68rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
}

/* ============================================================
   WOOCOMMERCE BASICS
   ============================================================ */
.woocommerce-products-header {
  padding: 5rem 0 3rem;
  text-align: center;
}

.woocommerce-products-header h1 {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background: var(--c-white);
  padding: 1.5rem !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  transition: background var(--ease);
}

.woocommerce ul.products li.product:hover {
  background: var(--c-off-white);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: var(--ls-wide) !important;
  text-transform: uppercase !important;
  color: var(--c-heading) !important;
  padding: 1rem 0 0.5rem !important;
}

.woocommerce ul.products li.product .price {
  font-family: var(--f-ui) !important;
  font-size: 0.85rem !important;
  color: var(--c-body) !important;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-wrap {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-dark);
  text-align: center;
  padding: var(--sp-lg) var(--gutter);
}

.error-404-code {
  font-family: var(--f-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  color: rgba(255,255,255,0.07);
  line-height: 1;
  display: block;
  margin-bottom: -2rem;
}

.error-404-title {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.error-404-body {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --gutter: 1.5rem;
    --sp-xl: 5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  .service-item:nth-child(3n) {
    border-right: 1px solid var(--c-border);
  }

  .service-item:nth-child(2n) {
    border-right: none;
  }

  .team-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-image-side {
    aspect-ratio: 16/9;
    order: -1;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --gutter: 1.25rem;
    --sp-xl: 4rem;
    --sp-lg: 3rem;
  }

  /* Hide desktop nav, show toggle */
  .primary-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.99);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 0;
    border-top: 1px solid var(--c-border-dark);
  }

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

  .primary-nav > li {
    width: 100%;
    border-bottom: 1px solid var(--c-border-dark);
  }

  .primary-nav > li > a {
    padding: 1rem 0;
    font-size: 0.8rem;
  }

  .primary-nav > li > a::after { display: none; }

  .primary-nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: none;
    border: none;
    border-top: none;
    padding: 0 0 0.75rem 0;
    min-width: 0;
    backdrop-filter: none;
  }

  .primary-nav .sub-menu li a {
    padding: 0.4rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title-wrap {
    height: clamp(2.8rem, 8vw, 3.5rem);
  }

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

  .service-item,
  .service-item:nth-child(3n),
  .service-item:nth-child(2n) {
    border-right: none;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   ANIMATIONS / TRANSITIONS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .headline-item {
    animation: none !important;
  }
  .headline-item:first-child {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-scroll-arrow {
    animation: none !important;
  }
}

/* Fade-in on scroll (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--c-border);
}

.portfolio-item {
  background: var(--c-white);
  overflow: hidden;
}

.portfolio-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 800 / 520;
  background: var(--c-off-white);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.03);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-view {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-sm);
  transform: translateY(8px);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.portfolio-item:hover .portfolio-view {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-meta {
  padding: 1.5rem 2rem;
}

.portfolio-cat {
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-subtle);
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-heading);
  line-height: 1.3;
}

/* ============================================================
   POST CARD THUMBNAIL
   ============================================================ */
.post-card-thumb {
  aspect-ratio: 640 / 420;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--c-off-white);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

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

/* ============================================================
   NAV CART ICON (WooCommerce)
   ============================================================ */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.65);
  position: relative;
  transition: color var(--ease);
}

.nav-cart:hover { color: var(--c-white); }

.nav-cart svg { display: block; }

.cart-count {
  font-family: var(--f-ui);
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--c-white);
  color: var(--c-dark);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: absolute;
  top: -6px;
  right: -8px;
}

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

