/*
Theme Name: Nexaryze
Theme URI: https://nexaryze.com
Author: Nexaryze
Author URI: https://nexaryze.com
Description: Custom WordPress theme for Nexaryze Digital Marketing Agency. Features cream/navy/red brand colors, Playfair Display + DM Sans typography, and full page templates for Home, Services, About, Contact, and Blog.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nexaryze
Tags: business, marketing, agency, custom-colors, custom-logo, full-width-template
*/

/* ============================================================
   NEXARYZE THEME — DESIGN SYSTEM
   Brand Colors:
     Navy:    #1b2a4a
     Red:     #e8293a
     Cream:   #f2f0eb
     White:   #ffffff
     Muted:   #6b7a95
   Fonts:
     Headings: Playfair Display
     Body:     DM Sans
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy:      #1b2a4a;
  --navy-deep: #111d33;
  --navy-lt:   #243659;
  --red:       #e8293a;
  --red-dk:    #c41f2e;
  --cream:     #f2f0eb;
  --cream-lt:  #f8f6f2;
  --cream-dk:  #e8e4dc;
  --white:     #ffffff;
  --text:      #1b2a4a;
  --muted:     #6b7a95;
  --border:    rgba(27,42,74,0.1);
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
  --radius:    6px;
  --shadow-sm: 0 2px 12px rgba(27,42,74,0.07);
  --shadow-md: 0 8px 32px rgba(27,42,74,0.1);
  --shadow-lg: 0 20px 60px rgba(27,42,74,0.13);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Reset WordPress defaults */
body.page, body.home, body.blog { margin: 0; padding: 0; }
.site { margin: 0; padding: 0; }
.site-content { padding: 0; margin: 0; }
.entry-content { max-width: 100%; padding: 0; margin: 0; }
article.page { margin: 0; padding: 0; }

/* Hide default WP elements on canvas pages */
.nexaryze-canvas .site-header,
.nexaryze-canvas .site-footer,
.nexaryze-canvas .entry-header,
.nexaryze-canvas .entry-footer,
.nexaryze-canvas #wpadminbar + #page .site-header { display: none !important; }

/* ── SHARED TYPOGRAPHY ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
}

p { line-height: 1.75; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dk); }

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

/* ── NAVIGATION ──────────────────────────────────── */
.nx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5rem; height: 72px;
  background: rgba(242,240,235,0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--cream-dk);
  box-shadow: var(--shadow-sm);
}

.nx-nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nx-nav-logo img { height: 40px; width: auto; }
.nx-nav-logo span { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }

.nx-nav-menu { display: flex; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nx-nav-menu li a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 3px;
  transition: color 0.25s, background 0.25s;
}
.nx-nav-menu li a:hover,
.nx-nav-menu li.current-menu-item a { color: var(--navy); background: rgba(27,42,74,0.06); }
.nx-nav-menu li.current-menu-item a { color: var(--red); }

.nx-nav-cta {
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  padding: 0.6rem 1.6rem; background: var(--red); color: var(--white);
  text-decoration: none; border-radius: 3px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.nx-nav-cta:hover { background: var(--red-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,41,58,0.28); color: var(--white); }

.nx-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nx-hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; display: block; }

/* ── BUTTONS ─────────────────────────────────────── */
.nx-btn-primary {
  display: inline-block; padding: 0.9rem 2.4rem;
  background: var(--red); color: var(--white); font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; border-radius: 3px; cursor: pointer; border: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.nx-btn-primary:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,41,58,0.28); color: var(--white); }

.nx-btn-outline {
  display: inline-block; padding: 0.9rem 2.4rem;
  border: 2px solid var(--navy); color: var(--navy); font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; border-radius: 3px; cursor: pointer; background: transparent;
  transition: background 0.3s, color 0.3s;
}
.nx-btn-outline:hover { background: var(--navy); color: var(--white); }

.nx-btn-white {
  display: inline-block; padding: 0.9rem 2.4rem;
  background: var(--white); color: var(--navy); font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; border-radius: 3px; cursor: pointer; border: none;
  transition: background 0.3s, transform 0.2s; text-align: center;
}
.nx-btn-white:hover { background: var(--cream-lt); transform: translateY(-1px); color: var(--navy); }

.nx-btn-ghost {
  display: inline-block; padding: 0.9rem 2.4rem;
  border: 2px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; border-radius: 3px; cursor: pointer; background: transparent;
  transition: border-color 0.3s, color 0.3s; text-align: center;
}
.nx-btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ── SHARED SECTION STYLES ───────────────────────── */
.nx-section-label {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--red); margin-bottom: 0.7rem; display: block;
}

.nx-section-h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--navy); margin-bottom: 1.2rem;
}
.nx-section-h2 em { font-style: italic; color: var(--red); font-weight: 400; }

.nx-container { max-width: 1200px; margin: 0 auto; }

/* ── PAGE HERO BANNER ────────────────────────────── */
.nx-page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-lt) 100%);
  padding: 10rem 5rem 5rem; text-align: center; position: relative; overflow: hidden;
}
.nx-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.nx-page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--red), transparent 60%);
}
.nx-page-hero .nx-section-label { color: rgba(232,41,58,0.85); }
.nx-page-hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.nx-page-hero h1 em { font-style: italic; color: var(--red); font-weight: 400; }
.nx-page-hero p {
  font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.55);
  max-width: 580px; margin: 0 auto; position: relative; z-index: 1;
}

/* ── MARQUEE ─────────────────────────────────────── */
.nx-marquee-wrap { overflow: hidden; padding: 0.9rem 0; background: var(--navy); }
.nx-marquee-track { display: flex; white-space: nowrap; animation: nxMarquee 26s linear infinite; }
@keyframes nxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nx-marquee-item {
  font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 2rem; flex-shrink: 0; padding: 0 2rem;
}
.nx-marquee-item::after { content: '◆'; color: var(--red); font-size: 0.38rem; }

/* ── CTA STRIP ───────────────────────────────────── */
.nx-cta-wrap { padding: 5rem; }
.nx-cta-box {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-lt));
  border-radius: 10px; padding: 5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center;
  position: relative; overflow: hidden;
}
.nx-cta-box::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,41,58,0.12), transparent 65%);
}
.nx-cta-box::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), transparent); }
.nx-cta-box .nx-section-label { color: rgba(232,41,58,0.85); }
.nx-cta-box h2 { color: var(--white); font-family: var(--serif); font-size: clamp(2rem,3.8vw,3.2rem); font-weight: 700; }
.nx-cta-box h2 em { color: var(--red); font-style: italic; font-weight: 400; }
.nx-cta-box > div:first-child p { color: rgba(255,255,255,0.48); font-size: 0.95rem; line-height: 1.75; }
.nx-cta-actions { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; min-width: 180px; }

/* ── FOOTER ──────────────────────────────────────── */
.nx-footer { background: var(--navy-deep); }
.nx-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 5rem 5rem 0;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nx-footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.nx-footer-logo img { height: 32px; width: auto; }
.nx-footer-logo span { font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.nx-footer-brand p { font-size: 0.83rem; line-height: 1.8; color: rgba(255,255,255,0.3); max-width: 240px; }
.nx-footer-col h4 { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 1.1rem; }
.nx-footer-col ul { list-style: none; margin: 0; padding: 0; }
.nx-footer-col li { margin-bottom: 0.55rem; }
.nx-footer-col a { font-size: 0.83rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.3s; }
.nx-footer-col a:hover { color: var(--red); }
.nx-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.8rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nx-footer-bottom p, .nx-footer-bottom a { font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.18); text-decoration: none; transition: color 0.3s; }
.nx-footer-bottom a:hover { color: var(--red); }

/* ── REVEAL ANIMATIONS ───────────────────────────── */
.nx-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s cubic-bezier(.16,1,.3,1), transform 0.75s cubic-bezier(.16,1,.3,1); }
.nx-reveal.nx-visible { opacity: 1; transform: none; }
.nx-d1 { transition-delay: 0.08s; }
.nx-d2 { transition-delay: 0.16s; }
.nx-d3 { transition-delay: 0.24s; }
.nx-d4 { transition-delay: 0.32s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .nx-nav { padding: 0 1.5rem; }
  .nx-nav-menu { display: none; }
  .nx-nav-menu.nx-open {
    display: flex; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(242,240,235,0.98); backdrop-filter: blur(18px);
    flex-direction: column; padding: 2rem 1.5rem; gap: 0.5rem;
    border-bottom: 1px solid var(--cream-dk); z-index: 199;
  }
  .nx-hamburger { display: flex; }
  .nx-page-hero, .nx-cta-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nx-cta-box { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .nx-cta-actions { flex-direction: row; }
  .nx-footer-inner { grid-template-columns: 1fr 1fr; padding: 3rem 1.5rem 2rem; }
  .nx-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}
