/*
Theme Name: Orbis - By Signal
Theme URI: https://signal.marketing
Author: Signal Marketing Ltd
Author URI: https://signal.marketing
Description: A bespoke single-page theme for Orbis Risk Management — discreet protection and considered counsel. Every section (hero, services, approach, contact, footer and more) is fully editable through the WordPress Customizer: text, button labels and button URLs alike.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: orbis-signal
*/

/* ===================================================================
   Orbis — site styles (migrated from the original homepage <style>)
   =================================================================== */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  .font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: "kern" 1;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: #0a0a0a; color: #fff; overflow-x: hidden; }

  /* Prevent body scroll when mobile nav open */
  body.nav-open { overflow: hidden; }

  /* Reveal */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* Hero animations */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .hero-1 { animation: fadeUp 1.2s ease 0.2s both; }
  .hero-2 { animation: fadeUp 1.2s ease 0.5s both; }
  .hero-3 { animation: fadeUp 1.2s ease 0.9s both; }
  .hero-4 { animation: fadeUp 1.2s ease 1.2s both; }

  @keyframes lineDraw { from { width: 0; } to { width: 48px; } }
  .line-draw { animation: lineDraw 1.5s ease 0.6s both; }

  /* Hero grid background - V2 faded grid (lines that fade at edges) */
  .hero-grid-bg {
    background-color: #0a0a0a;
    position: relative;
  }
  .hero-grid-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
  }
  .hero-grid-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0) 70%, rgba(10,10,10,0.9) 100%);
    pointer-events: none;
  }
  .hero-vignette {
    background: radial-gradient(ellipse at center, rgba(10,10,10,0) 0%, rgba(10,10,10,0.4) 80%, rgba(10,10,10,0.85) 100%);
    pointer-events: none;
  }
  .hero-crosshair-h { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent 100%); }
  .hero-crosshair-v { background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.05) 80%, transparent 100%); }

  /* Nav scroll */
  .nav-wrap { transition: all 0.4s ease; }
  .nav-scrolled { background: rgba(10,10,10,0.95) !important; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* ===== MOBILE NAV OVERLAY ===== */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    visibility: hidden;
  }
  .mobile-nav.open {
    transform: translateY(0);
    visibility: visible;
  }
  .mobile-nav-grid {
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  /* Mobile nav link animation */
  .mobile-nav-link {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.3s; }
  .mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.4s; }
  .mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.5s; }
  .mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.6s; }

  .mobile-nav-footer {
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
  }
  .mobile-nav.open .mobile-nav-footer { opacity: 1; }

  /* Burger animation */
  .burger { width: 28px; height: 18px; position: relative; cursor: pointer; }
  .burger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .burger span:nth-child(1) { top: 2px; }
  .burger span:nth-child(2) { top: 9px; }
  .burger span:nth-child(3) { top: 16px; }
  .burger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
  .burger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

  /* Mobile nav link hover/tap effect */
  .mobile-link-arrow { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; }
  .mobile-nav-item:active .mobile-link-arrow, .mobile-nav-item:hover .mobile-link-arrow { opacity: 1; transform: translateX(8px); }
  .mobile-nav-item:active .mobile-link-text, .mobile-nav-item:hover .mobile-link-text { transform: translateX(8px); }
  .mobile-link-text { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; }

  /* Service card */
  .service-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .service-card:hover { background: rgba(255,255,255,0.03); }
  .service-card:hover .corner-arrow, .service-card:active .corner-arrow { transform: rotate(45deg); opacity: 1; }
  .service-card:hover .service-num, .service-card:active .service-num { color: rgba(255,255,255,0.5); }
  .corner-arrow { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.7; transform-origin: center; }
  .service-num { transition: color 0.4s ease; }

  /* Link underline */
  .link-hover { position: relative; }
  .link-hover::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: currentColor; transition: width 0.4s ease; }
  .link-hover:hover::after { width: 100%; }

  /* Button hover */
  .btn-primary { transition: all 0.3s ease; position: relative; overflow: hidden; }
  .btn-primary:hover, .btn-primary:active { background: #fff; color: #000; }
  .btn-primary:hover .btn-arrow, .btn-primary:active .btn-arrow { transform: rotate(45deg); }
  .btn-arrow { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; transform-origin: center; }

  /* Highlight */
  .highlight {
    background-image: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: 0 0;
    transition: background-size 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
    margin: 0 -4px;
    color: #fff;
  }
  .highlight.lit { background-size: 100% 100%; }
  .highlight-dark {
    background-image: linear-gradient(120deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.08) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
    margin: 0 -4px;
  }
  .highlight-dark.lit { background-size: 100% 100%; }

  /* Pulse */
  @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
  .pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

  /* Marquee - tighten gap on mobile */
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .marquee-track { animation: marquee 40s linear infinite; }

  /* Diagonal lines */
  .diagonal-bg {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
  }

  .vertical-text { writing-mode: vertical-rl; text-orientation: mixed; }

  .ghost-num {
    font-size: clamp(120px, 25vw, 320px);
    line-height: 0.8;
    color: rgba(255,255,255,0.03);
    font-weight: 200;
    letter-spacing: -0.05em;
  }

  .quote-section { background: #fafafa; color: #0a0a0a; }
  .quote-section .quote-light { color: rgba(0,0,0,0.5); }

  .footer-grid {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
  }

  .world-section-bg {
    background-color: #050505;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, transparent 70%);
  }

  /* Form styles */
  .form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 16px 0;
    transition: border-color 0.3s ease;
    outline: none;
  }
  .form-input:focus {
    border-bottom-color: #fff;
  }
  .form-input::placeholder {
    color: rgba(255,255,255,0.35);
  }
  .form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 4px;
  }
  textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
  }

  /* Ensure tap targets are at least 44px on mobile */
  @media (max-width: 768px) {
    .btn-primary { min-height: 52px; }
    .ghost-num { font-size: 140px; }
  }
/* WordPress core helper classes */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.orbis-notice{font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:1px;padding:16px 20px;margin-bottom:24px}
.orbis-notice-ok{border:1px solid rgba(255,255,255,0.4);background:rgba(255,255,255,0.05);color:#fff}
.orbis-notice-err{border:1px solid rgba(255,90,90,0.5);background:rgba(255,90,90,0.08);color:#ff8a8a}
.admin-bar .nav-wrap{top:32px}
@media screen and (max-width:782px){.admin-bar .nav-wrap{top:46px}}

/* Editor / service body content (the_content) */
.orbis-prose{color:rgba(255,255,255,0.72);line-height:1.85;}
.orbis-prose > *:first-child{margin-top:0;}
.orbis-prose p{margin:0 0 1.4em;}
.orbis-prose h2{color:#fff;font-weight:300;font-size:1.75rem;letter-spacing:-0.01em;margin:2em 0 0.6em;line-height:1.2;}
.orbis-prose h3{color:#fff;font-weight:300;font-size:1.35rem;margin:1.8em 0 0.5em;}
.orbis-prose a{color:#fff;text-decoration:underline;text-underline-offset:3px;}
.orbis-prose strong{color:#fff;font-weight:500;}
.orbis-prose ul,.orbis-prose ol{margin:0 0 1.4em;padding:0;list-style:none;}
.orbis-prose ul li,.orbis-prose ol li{position:relative;padding-left:1.4rem;margin-bottom:0.6em;}
.orbis-prose ul li::before{content:'';position:absolute;left:0;top:0.85em;width:8px;height:1px;background:rgba(255,255,255,0.45);}
.orbis-prose ol{counter-reset:orbis;}
.orbis-prose ol li{counter-increment:orbis;}
.orbis-prose ol li::before{content:counter(orbis,decimal-leading-zero);position:absolute;left:0;top:0;font-family:'JetBrains Mono',monospace;font-size:0.7em;color:rgba(255,255,255,0.4);}
.orbis-prose blockquote{border-left:1px solid rgba(255,255,255,0.2);padding-left:1.25rem;margin:1.6em 0;color:rgba(255,255,255,0.85);font-weight:300;}
