/*
 Theme Name:   Sitecroft Custom Child
 Theme URI:    https://dnnengineer.com
 Description:  A fully custom dark theme for Sitecroft - WordPress Development, Done Right.
 Author:       Sitecroft
 Author URI:   https://dnnengineer.com
 Template:     astra
 Version:      1.0.1
 Text Domain:  sitecroft-custom
*/

/* ============================================
   BASE RESET & GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #060b14;
    color: #e2e8f0;
    overflow-x: hidden;
}

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

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

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #060b14;
}

::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 2px;
}

/* ============================================
   UTILITY & LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.section {
    padding: 90px 60px;
}

.section-dark {
    background: #0a1020;
}

.section-darker {
    background: #060b14;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #06b6d4;
}

.section-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-sub {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 56px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1.5px solid rgba(99, 179, 237, 0.3);
}

.btn-secondary:hover {
    border-color: #63b3ed;
    color: #63b3ed;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 8px;
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Astra remove default header styles */
.ast-primary-header-bar,
.ast-above-header,
.ast-below-header,
.ast-header-break-point .main-header-bar {
    display: none !important;
}

.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content {
    display: none !important;
}

/* Hide Astra's default header */
header.ast-custom-header,
.ast-primary-header-bar,
.ast-header-break-point .main-header-bar,
.ast-above-header,
.ast-below-header,
.main-header-bar-wrap {
    display: none !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 179, 237, 0.1);
    padding: 14px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.site-header .nav-logo-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.site-header .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.site-header .nav-links a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.site-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #06b6d4;
    transition: width 0.2s;
}

.site-header .nav-links a:hover {
    color: #06b6d4;
}

.site-header .nav-links a:hover::after {
    width: 100%;
}

.site-header .nav-links .current-menu-item a {
    color: #06b6d4;
}

.site-header .nav-links .current-menu-item a::after {
    width: 100%;
}


/* Nav CTA Button */
.nav-cta {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1.4;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ============================================
   PAGE HERO (Default)
   ============================================ */

.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 60px 80px;
    text-align: center;
    background: #060b14;
}

.page-hero .hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.page-hero .hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 179, 237, 0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99, 179, 237, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.page-hero .hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

.page-hero .hero-title .gradient {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .hero-sub {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #020608;
    border-top: 1px solid rgba(6, 182, 212, 0.08);
    padding: 56px 60px 32px;
}

.site-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.site-footer .footer-brand .footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.site-footer .footer-brand .footer-logo-wrap img {
    height: 50px;
    width: auto;
}

.site-footer .footer-brand .footer-logo-wrap span {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.site-footer .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.site-footer .footer-badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

.site-footer .footer-badge span {
    font-size: 12px;
    color: #64748b;
}

.site-footer .footer-brand p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    max-width: 260px;
}

.site-footer .footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer .footer-col a {
    display: block;
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s;
    margin-bottom: 8px;
}

.site-footer .footer-col a:hover {
    color: #06b6d4;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(99, 179, 237, 0.06);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer .footer-bottom p {
    font-size: 13px;
    color: rgba(100, 116, 139, 0.4);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99, 179, 237, 0.05);
    border: 1px solid rgba(99, 179, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: #64748b;
    stroke: #64748b;
    stroke-width: 0;
    transition: all 0.2s;
}

.social-btn:hover svg {
    fill: #06b6d4;
    stroke: #06b6d4;
}

.social-btn svg.stroke-icon {
    fill: none !important;
    stroke-width: 2;
}

/* ============================================
   PAGE CONTENT (Default WordPress content)
   ============================================ */

.site-content {
    padding-top: 80px;
    min-height: 80vh;
}

.site-main {
    padding: 80px 60px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e2e8f0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.3em; }
.entry-content h4 { font-size: 1.1em; }

.entry-content p {
    margin-bottom: 1.2em;
    color: #cbd5e1;
}

.entry-content a {
    color: #06b6d4;
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    transition: border-color 0.2s;
}

.entry-content a:hover {
    border-bottom-color: #06b6d4;
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0;
    padding-left: 24px;
    color: #cbd5e1;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 3px solid #06b6d4;
    padding: 16px 20px;
    margin: 1.5em 0;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
    font-style: italic;
}

.entry-content img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.entry-content pre,
.entry-content code {
    background: #0a1020;
    border: 1px solid rgba(99, 179, 237, 0.1);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 14px;
    color: #63b3ed;
}

.entry-content pre {
    padding: 16px;
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
    border: 1px solid rgba(99, 179, 237, 0.1);
    padding: 10px 14px;
    text-align: left;
}

.entry-content th {
    background: #0a1020;
    color: #fff;
    font-weight: 600;
}

.entry-content td {
    color: #cbd5e1;
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 60px;
    background: #060b14;
    position: relative;
    overflow: hidden;
}

.error-404::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.error-404 .error-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    position: relative;
}

.error-404 h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.error-404 p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.error-404 .btn {
    position: relative;
}

/* ============================================
   SEARCH
   ============================================ */

.search-header {
    text-align: center;
    padding: 40px 60px;
    background: #0a1020;
    border-bottom: 1px solid rgba(99, 179, 237, 0.08);
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.search-header p {
    font-size: 15px;
    color: #64748b;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 24px auto 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(99, 179, 237, 0.2);
    background: #060b14;
    color: #e2e8f0;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="search"]:focus {
    border-color: #06b6d4;
}

.search-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.search-form button:hover {
    opacity: 0.9;
}

/* ============================================
   POSTS / BLOG
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.post-card {
    background: #0a1020;
    border: 1px solid rgba(99, 179, 237, 0.1);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: #fff;
    transition: color 0.2s;
}

.post-card h3 a:hover {
    color: #06b6d4;
}

.post-card .post-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.post-card .post-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

.post-card .btn {
    margin-top: 16px;
}

/* Single Post */
.single-post-header {
    position: relative;
    padding: 160px 60px 60px;
    text-align: center;
    background: #060b14;
    overflow: hidden;
}

.single-post-header .hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
}

.single-post-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
}

.single-post-header .post-meta {
    color: #64748b;
    font-size: 14px;
    margin-top: 16px;
    position: relative;
}

/* ============================================
   WOOCOMMERCE BASIC OVERRIDES
   ============================================ */

.woocommerce .button,
.woocommerce a.button {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

@keyframes float3d {
    0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(8deg) rotateX(-4deg) translateY(-12px); }
}

@keyframes barGrow {
    from { width: 0; }
    to { width: 75%; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .section { padding: 70px 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .site-main { padding: 60px 40px 40px; }
}

@media (max-width: 768px) {
    .site-header { padding: 14px 24px; }
    .site-header .nav-links { display: none; }
    .section { padding: 60px 24px; }
    .site-footer { padding: 40px 24px 24px; }
    .site-footer .footer-top { grid-template-columns: 1fr; }
    .site-footer .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero { padding: 120px 24px 60px; }
    .site-main { padding: 40px 24px 24px; }
    .container { padding: 0 24px; }
    .posts-grid { grid-template-columns: 1fr; }
    .single-post-header { padding: 140px 24px 40px; }
    .search-header { padding: 30px 24px; }
    .error-404 { padding: 100px 24px; }
}