/*
Theme Name: Gravity Projex 2026
Theme URI: https://gravityprojex.com
Author: Gravity Projex
Author URI: https://gravityprojex.com
Description: Custom theme with Tailwind CSS and custom PHP templates.
Version: 4.0.1
Text Domain: gravityprojex
License: Gravity Projex - Intellectual Property (Framework,software,scripts,codes,and all other material)
 *PROPRIETARY SOFTWARE LICENSE- GRAVITY PROJEX
 *Copyright (c) 2025 Gravity Projex. All Rights Reserved.
 *Business located in Australia.
 *
 * This software and associated documentation files (the "Software") are proprietary
 * and confidential to Gravity Projex. The source code contained or described herein and all documents related
 * to the source code ("Material") and website framework are owned by Gravity Projex or its
 * licensors and authorised representatives. Title to the Material remains with Gravity Projex
 * or its licensors and authorised representatives. The Material contains trade
 * secrets and proprietary and confidential information of Gravity Projex or its
 * licensors and authorised representatives.
 *
 * RESTRICTIONS:
 * 1. You may NOT copy, modify, distribute, or sell copies of the Software or coding, scripts or framework
 * 2. You may NOT reverse engineer, decompile, or disassemble the Software or coding, scripts or framework
 * 3. You may NOT remove any proprietary notices or labels on the Software or coding, scripts or framework
 * 4. Unauthorized use may result in legal action and monetary damages
 * The Material is protected by worldwide copyright
 * and trade secret laws and treaty provisions. No part of the Material may
 * be used, copied, reproduced, modified, published, uploaded, posted,
 * transmitted, distributed, or disclosed in any way without Gravity Projex prior
 * express written permission.
 * No license under any patent, copyright, trade secret or other intellectual
 * property right is granted to or conferred upon you by disclosure or
 * delivery of the Materials, either expressly, by implication, inducement,
 * estoppel or otherwise. Any license under such intellectual property rights
 * must be expressed and approved by Gravity Projex in writing.
 * OWNERSHIP:
 * The Software is owned by Gravity Projex and is protected by Australian copyright
 * laws and international treaty provisions.
 * CONTACT:
 * For licensing enquiries: admin@gravityprojex.com
 * Website: https://gravityprojex.com
 * VIOLATIONS:
 * Unauthorized copying or use of this Software will result in:
 * - Immediate cease and desist notice
 * - Legal action under Australian Copyright Act 1968
 * - Monetary damages and legal fees
 *  Last Updated: February 2026
 */


/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
    /* Coral Brand Colors (for headings & CTAs) */
    --gp-coral: #ff6b6b;
    --gp-coral-light: #ff8a8a;
    --gp-coral-dark: #e55a5a;
    
    /* Background */
    --gp-navy: #0d1b2a;
}


/* ========================================
   BASE / RESET
   ======================================== */

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

body {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ========================================
   ACCESSIBILITY UTILITIES
   ======================================== */

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

.focus\:not-sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}


/* ========================================
   BACKGROUND - Deep Navy with Grain Texture
   (Applied to all pages EXCEPT Gravity Galaxy)
   ======================================== */

body {
    background-color: var(--gp-navy) !important;
}

body #page {
    background-color: var(--gp-navy) !important;
}

/* Override any bg-slate-950 classes on non-Galaxy pages */
body {
    background-color: var(--gp-navy) !important;
}

/* Grain Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}


/* ========================================
   H1 & H2 HEADINGS - Syne Font + Hot Coral
   ======================================== */

h1, h2, h3,
.text-4xl, .text-5xl, .text-6xl, .text-7xl {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Apply coral color to main page headings */
section h1,
section h2,
section h3,
.gp-prose h1,
.gp-prose h2,
.gp-prose h3 {
    color: var(--gp-coral) !important;
}

/* Preserve white headings where gradient text is used (stats, etc) */
h1.text-white,
h2.text-white,
h3.text-white,
[class*="bg-clip-text"] {
    color: inherit !important;
}


/* ========================================
   CTA BUTTONS - Coral Gradient
   Override violet-to-cyan gradients
   ======================================== */

/* Primary CTA buttons */
a.bg-gradient-to-r.from-violet-600.to-cyan-500,
a.bg-gradient-to-r.from-violet-500.to-cyan-400,
a[class*="from-violet-600"][class*="to-cyan-500"],
a[class*="from-violet-500"][class*="to-cyan-400"],
button[class*="from-violet-600"][class*="to-cyan-500"],
.gp-btn-coral {
    background: linear-gradient(135deg, var(--gp-coral) 0%, var(--gp-coral-light) 100%) !important;
    box-shadow: 0 10px 40px -10px rgba(255, 107, 107, 0.4) !important;
}

/* Hover states for CTA buttons */
a.bg-gradient-to-r.from-violet-600.to-cyan-500:hover,
a.bg-gradient-to-r.from-violet-500.to-cyan-400:hover,
a[class*="from-violet-600"][class*="to-cyan-500"]:hover,
a[class*="from-violet-500"][class*="to-cyan-400"]:hover,
button[class*="from-violet-600"][class*="to-cyan-500"]:hover,
.gp-btn-coral:hover {
    background: linear-gradient(135deg, var(--gp-coral-light) 0%, var(--gp-coral) 100%) !important;
    box-shadow: 0 15px 50px -10px rgba(255, 107, 107, 0.5) !important;
    transform: translateY(-2px);
}

/* CTA icon boxes/circles with gradient background */
.bg-gradient-to-br.from-violet-500.to-cyan-500,
.bg-gradient-to-br.from-violet-600.to-cyan-500,
div[class*="from-violet-500"][class*="to-cyan-500"]:not(nav *):not(#main-navigation *):not(a *) {
    background: linear-gradient(135deg, var(--gp-coral) 0%, var(--gp-coral-light) 100%) !important;
}

/* Shadow updates for CTA elements */
.shadow-violet-500\/30,
.shadow-violet-500\/40 {
    box-shadow: 0 10px 40px -10px rgba(255, 107, 107, 0.4) !important;
}


/* ========================================
   PRESERVE LOGO - DO NOT CHANGE
   The logo in the header should keep original colors
   ======================================== */

#main-navigation svg,
nav svg,
.logo svg {
    /* Logo keeps original violet/cyan gradient - no changes */
}


/* ========================================
   CUSTOM SCROLLBAR (Webkit)
   ======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gp-navy); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }


/* ========================================
   SELECTION COLOUR
   ======================================== */

::selection { background-color: rgba(255, 107, 107, 0.3); color: #ffffff; }
::-moz-selection { background-color: rgba(255, 107, 107, 0.3); color: #ffffff; }


/* ========================================
   FOCUS STYLES (Accessibility)
   ======================================== */

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--gp-coral);
    outline-offset: 2px;
}


/* ========================================
   WORDPRESS ADMIN BAR OFFSET
   ======================================== */

.admin-bar #main-navigation { top: 32px; }
.admin-bar #mobile-menu { top: 112px; }
@media screen and (max-width: 782px) {
    .admin-bar #main-navigation { top: 46px; }
    .admin-bar #mobile-menu { top: 126px; }
}


/* ========================================
   WORDPRESS BLOCK OVERRIDES
   ======================================== */

.wp-block-image img { border-radius: 0.5rem; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }


/* ========================================
   UTILITY CLASSES
   ======================================== */

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.services-wrapper { width: 100%; max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

.cta-wrapper * { box-sizing: border-box; }
.cta-wrapper h2, .cta-wrapper p, .cta-wrapper a { margin: 0; padding: 0; text-decoration: none; }


/* ========================================
   ANIMATIONS — Floating / Pulsing
   ======================================== */

@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 30px); } }
@keyframes float-slow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 50px); } }
@keyframes pulse-slow { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } }

.animate-float { animation: float 20s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 15s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 10s ease-in-out infinite; }


/* ========================================
   ANIMATIONS — Fade In
   ======================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }

.animation-delay-200 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.animation-delay-400 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.animation-delay-600 { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }


/* ========================================
   ANIMATIONS — Spin (Pricing Section)
   ======================================== */

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

.animate-spin-slow { animation: spin-slow 60s linear infinite; }
.animate-spin-reverse { animation: spin-reverse 45s linear infinite; }


/* ========================================
   ANIMATIONS — Rocket (Launch Projex)
   ======================================== */

@keyframes rocketPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-rocket { animation: rocketPulse 3s ease-in-out infinite; }


/* ========================================
   FORM STYLES (Contact & Launch Projex)
   ======================================== */

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--gp-coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder { color: #64748b; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-select option { background: var(--gp-navy); color: #ffffff; }


/* ========================================
   PROSE TYPOGRAPHY (Blog / Single Post)
   ======================================== */

.gp-prose h1 { 
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2.25rem; 
    font-weight: 800; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    color: var(--gp-coral); 
    line-height: 1.3; 
}
.gp-prose h2 { 
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.875rem; 
    font-weight: 700; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    color: var(--gp-coral); 
    line-height: 1.3; 
}
.gp-prose h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #cbd5e1; line-height: 1.4; }
.gp-prose h4 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #cbd5e1; }
.gp-prose p { margin-bottom: 1.25rem; color: #94a3b8; line-height: 1.8; font-size: 1.0625rem; }
.gp-prose ul, .gp-prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.gp-prose ul { list-style-type: disc; }
.gp-prose ol { list-style-type: decimal; }
.gp-prose li { margin-bottom: 0.75rem; color: #94a3b8; line-height: 1.7; }
.gp-prose li::marker { color: var(--gp-coral); }
.gp-prose strong, .gp-prose b { color: #e2e8f0; font-weight: 600; }
.gp-prose em, .gp-prose i { color: #cbd5e1; }
.gp-prose a { color: var(--gp-coral); text-decoration: underline; text-decoration-color: rgba(255, 107, 107, 0.3); transition: all 0.2s; }
.gp-prose a:hover { color: var(--gp-coral-light); text-decoration-color: rgba(255, 107, 107, 0.6); }
.gp-prose blockquote { border-left: 4px solid var(--gp-coral); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: #cbd5e1; }
.gp-prose blockquote p { color: #cbd5e1; }
.gp-prose pre { background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.gp-prose code { background: rgba(255, 107, 107, 0.15); color: #ffb4b4; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; }
.gp-prose pre code { background: transparent; color: #e2e8f0; padding: 0; }
.gp-prose img { max-width: 100%; height: auto; border-radius: 1rem; margin: 2rem 0; }
.gp-prose figure { margin: 2rem 0; }
.gp-prose figcaption { text-align: center; color: #64748b; font-size: 0.875rem; margin-top: 0.75rem; }
.gp-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.gp-prose th { background: rgba(255, 107, 107, 0.1); color: #e2e8f0; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid rgba(255,255,255,0.1); }
.gp-prose td { padding: 0.75rem 1rem; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.05); }
.gp-prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2.5rem 0; }
.gp-prose .wp-block-image { margin: 2rem 0; }
.gp-prose .wp-block-image img { border-radius: 1rem; }
.gp-prose .wp-block-quote { border-left: 4px solid var(--gp-coral); padding-left: 1.5rem; margin: 2rem 0; }


/* ========================================
   GALAXY PAGE — Starfield Background
   (Keep original - no navy override)
   ======================================== */

.galaxy-bg { position: relative; overflow: hidden; }

.galaxy-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 75%, rgba(139,92,246,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 25%, rgba(6,182,212,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}


/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item .chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}


/* ========================================
   PORTFOLIO PAGE
   ======================================== */

@keyframes portfolioFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-card {
    animation: portfolioFadeIn 0.4s ease forwards;
}

/* ========================================
   PRICE SECTION UNDERLINE
   ======================================== */
.underline-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 2px;
    transition: gap 0.3s ease;
}

.underline-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-link:hover::after {
    width: 100%;
}

.underline-link:hover {
    gap: 0.75rem;
}

.underline-link .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.underline-link:hover .arrow {
    transform: translateX(4px);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    nav, footer, .no-print { display: none !important; }
}
