/*
Theme Name: Savvyzo
Theme URI: https://savvyzo-nextgen-digital.lovable.app
Description: Savvyzo — a premium black & red minimalist tech theme for next-generation digital companies. Multi-page business website with Home, About, Services, Vision, Resources, Blog, Whitepapers, News, Contact, and Book-a-Call templates. Fully responsive, fast, SEO-ready, and built with the Gutenberg block editor.
Author: Savvyzo
Author URI: https://savvyzo-nextgen-digital.lovable.app
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savvyzo
Tags: business, technology, dark, red, minimal, one-column, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ===== Brand Tokens ===== */
:root {
    --sv-red: #FF0000;
    --sv-red-glow: rgba(255, 0, 0, 0.45);
    --sv-black: #000000;
    --sv-charcoal: #111111;
    --sv-gray: #F3F4F6;
    --sv-gray-text: #6B7280;
    --sv-white: #FFFFFF;
    --sv-border: #E5E7EB;
    --sv-radius: 8px;
    --sv-shadow-elegant: 0 10px 40px -10px rgba(0,0,0,0.15);
    --sv-shadow-glow-red: 0 0 40px -8px var(--sv-red-glow);
    --sv-transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --sv-font-display: "Poppins", system-ui, sans-serif;
    --sv-font-body: "Inter", system-ui, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; padding: 0;
    font-family: var(--sv-font-body);
    color: var(--sv-charcoal);
    background: var(--sv-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sv-charcoal); transition: color 0.3s ease; }
a:hover { color: var(--sv-red); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sv-font-display);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.6em;
    color: var(--sv-charcoal);
    line-height: 1.2;
}

p { margin: 0 0 1em; }

::selection { background: var(--sv-red); color: #fff; }

/* WP required classes */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}
.sticky, .gallery-caption, .bypostauthor, .wp-caption, .wp-caption-text { display: block; }
.wp-caption-text { font-size: 13px; color: var(--sv-gray-text); padding: 8px 0; }

/* ===== Layout ===== */
.sv-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) {
    .sv-container { padding: 0 2.5rem; }
}

/* ===== Navbar ===== */
.sv-navbar {
    position: fixed; inset: 0 0 auto 0;
    z-index: 9999;
    transition: var(--sv-transition-premium);
    background: transparent;
}
.sv-navbar.scrolled,
body:not(.home) .sv-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sv-border);
}
.sv-navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
}
.sv-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sv-font-display); font-weight: 800;
    font-size: 1.25rem; color: var(--sv-black); text-decoration: none;
}
.sv-logo img { max-height: 40px; width: auto; }
.sv-logo .sv-logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--sv-red);
    box-shadow: 0 0 12px var(--sv-red-glow);
}

.sv-nav-list {
    display: none; list-style: none; margin: 0; padding: 0;
    align-items: center; gap: 4px;
}
@media (min-width: 1024px) { .sv-nav-list { display: flex; } }
.sv-nav-list li { position: relative; }
.sv-nav-list a {
    position: relative; display: inline-block;
    padding: 8px 14px; font-size: 14px; font-weight: 500;
    color: var(--sv-charcoal); text-decoration: none; border-radius: 6px;
}
.sv-nav-list a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--sv-red);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.sv-nav-list a:hover { color: var(--sv-red); }
.sv-nav-list a:hover::after,
.sv-nav-list .current-menu-item > a::after,
.sv-nav-list .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }

.sv-nav-list ul {
    position: absolute; top: 100%; left: 0;
    list-style: none; padding: 8px; margin: 0;
    background: #fff; border: 1px solid var(--sv-border);
    border-radius: 10px; min-width: 220px;
    box-shadow: var(--sv-shadow-elegant);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--sv-transition-premium);
}
.sv-nav-list li:hover > ul { opacity: 1; visibility: visible; transform: none; }
.sv-nav-list ul a { display: block; padding: 8px 12px; }
.sv-nav-list ul a::after { display: none; }

.sv-cta-btn {
    position: relative; overflow: hidden;
    display: none; align-items: center; justify-content: center;
    padding: 10px 22px; font-weight: 600; font-size: 14px;
    background: var(--sv-black); color: #fff !important;
    border-radius: var(--sv-radius); text-decoration: none;
    transition: var(--sv-transition-premium);
}
@media (min-width: 1024px) { .sv-cta-btn { display: inline-flex; } }
.sv-cta-btn:hover { box-shadow: var(--sv-shadow-glow-red); }
.sv-cta-btn::before {
    content: ""; position: absolute; inset: 0;
    background: var(--sv-red); transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sv-cta-btn:hover::before { transform: translateX(0); }
.sv-cta-btn span { position: relative; z-index: 1; }

.sv-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: transparent; border: 0;
    cursor: pointer; padding: 0;
}
@media (min-width: 1024px) { .sv-burger { display: none; } }
.sv-burger span { width: 22px; height: 2px; background: var(--sv-charcoal); position: relative; display: block; }
.sv-burger span::before, .sv-burger span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--sv-charcoal);
}
.sv-burger span::before { top: -7px; } .sv-burger span::after { top: 7px; }

.sv-mobile-nav { display: none; background: #fff; border-top: 1px solid var(--sv-border); }
.sv-mobile-nav.open { display: block; }
.sv-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.sv-mobile-nav a {
    display: block; padding: 12px 24px; font-size: 14px;
    font-weight: 500; color: var(--sv-charcoal); text-decoration: none;
}
.sv-mobile-nav a:hover { background: var(--sv-gray); color: var(--sv-red); }

/* ===== Buttons ===== */
.sv-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--sv-radius);
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: var(--sv-transition-premium);
    border: 0; cursor: pointer; font-family: inherit;
}
.sv-btn-primary { background: var(--sv-black); color: #fff; }
.sv-btn-primary:hover { background: var(--sv-red); color: #fff; box-shadow: var(--sv-shadow-glow-red); }
.sv-btn-red { background: var(--sv-red); color: #fff; }
.sv-btn-red:hover { box-shadow: var(--sv-shadow-glow-red); color: #fff; }
.sv-btn-outline {
    background: transparent; color: var(--sv-red);
    border: 2px solid var(--sv-red);
}
.sv-btn-outline:hover { background: var(--sv-red); color: #fff; }
.sv-btn-outline-light {
    background: transparent; color: #fff; border: 2px solid #fff;
}
.sv-btn-outline-light:hover { background: #fff; color: var(--sv-black); }

/* ===== Hero ===== */
.sv-hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    background: var(--sv-black); color: #fff; overflow: hidden;
    padding: 120px 0 80px;
}
.sv-hero::before {
    content: ""; position: absolute; inset: 0;
    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: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.sv-hero::after {
    content: ""; position: absolute; top: -10%; right: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--sv-red-glow), transparent 65%);
    filter: blur(40px); animation: sv-glow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sv-glow {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50%     { opacity: 1;  transform: scale(1.1); }
}
.sv-hero-inner { position: relative; z-index: 2; max-width: 880px; }
.sv-hero .sv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
    margin-bottom: 24px;
}
.sv-hero .sv-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sv-red); box-shadow: 0 0 8px var(--sv-red);
}
.sv-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05;
    margin: 0 0 24px; color: #fff;
}
.sv-hero h1 .accent { color: var(--sv-red); }
.sv-hero p.lead {
    font-size: 1.15rem; line-height: 1.6;
    color: rgba(255,255,255,0.7); max-width: 620px; margin: 0 0 36px;
}
.sv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
.sv-section { padding: 100px 0; }
.sv-section-dark { background: var(--sv-black); color: #fff; }
.sv-section-dark h1, .sv-section-dark h2, .sv-section-dark h3 { color: #fff; }
.sv-section-gray { background: var(--sv-gray); }
.sv-section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.sv-section-head .sv-eyebrow-text {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sv-red); margin-bottom: 16px;
}
.sv-section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px;
}
.sv-section-head p { color: var(--sv-gray-text); font-size: 1.05rem; }
.sv-section-dark .sv-section-head p { color: rgba(255,255,255,0.65); }

/* ===== Grids / Cards ===== */
.sv-grid { display: grid; gap: 24px; }
.sv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sv-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .sv-grid-2, .sv-grid-3, .sv-grid-4 { grid-template-columns: 1fr; }
}

.sv-card {
    background: #fff; border: 1px solid var(--sv-border);
    border-radius: 14px; padding: 28px;
    transition: var(--sv-transition-premium);
    position: relative; overflow: hidden;
}
.sv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sv-shadow-elegant);
    border-color: var(--sv-red);
}
.sv-card::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 0; height: 3px; background: var(--sv-red);
    transition: width 0.4s ease;
}
.sv-card:hover::before { width: 100%; }
.sv-card h3 { margin: 14px 0 8px; font-size: 1.3rem; }
.sv-card p { color: var(--sv-gray-text); margin: 0; line-height: 1.6; }
.sv-card .sv-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(255,0,0,0.08); color: var(--sv-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700;
}
.sv-section-dark .sv-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: #fff; }
.sv-section-dark .sv-card p { color: rgba(255,255,255,0.7); }

/* ===== Stats ===== */
.sv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 900px) { .sv-stats { grid-template-columns: repeat(2, 1fr); } }
.sv-stat .num {
    font-family: var(--sv-font-display);
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
    color: var(--sv-red); line-height: 1;
}
.sv-stat .lbl {
    margin-top: 8px; font-size: 14px; color: var(--sv-gray-text);
    letter-spacing: 0.05em; text-transform: uppercase;
}

/* ===== CTA Banner ===== */
.sv-cta-banner {
    background: linear-gradient(135deg, #000 0%, #1a0000 100%);
    color: #fff; padding: 80px 40px;
    border-radius: 24px; text-align: center;
    position: relative; overflow: hidden;
}
.sv-cta-banner::after {
    content: ""; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, var(--sv-red-glow), transparent 60%);
    opacity: 0.4; pointer-events: none;
}
.sv-cta-banner * { position: relative; z-index: 1; }
.sv-cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 16px; }
.sv-cta-banner p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; }

/* ===== Footer ===== */
.sv-footer { background: var(--sv-black); color: #fff; padding: 80px 0 32px; }
.sv-footer h4 {
    font-size: 13px; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: #fff; margin: 0 0 20px;
}
.sv-footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
@media (max-width: 900px) { .sv-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sv-footer-grid { grid-template-columns: 1fr; } }
.sv-footer ul { list-style: none; padding: 0; margin: 0; }
.sv-footer li { margin-bottom: 12px; }
.sv-footer a { color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; }
.sv-footer a:hover { color: var(--sv-red); }
.sv-footer-bottom {
    margin-top: 60px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    color: rgba(255,255,255,0.4); font-size: 12px;
}
.sv-newsletter {
    display: flex; gap: 8px; padding: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; max-width: 360px; margin-top: 24px;
}
.sv-newsletter input {
    flex: 1; background: transparent; border: 0; outline: none;
    color: #fff; padding: 8px 12px; font-size: 14px; font-family: inherit;
}
.sv-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.sv-newsletter button {
    background: var(--sv-red); color: #fff; border: 0;
    padding: 8px 16px; border-radius: 6px; font-weight: 600;
    font-size: 13px; cursor: pointer; font-family: inherit;
}

/* ===== Reveal ===== */
.sv-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.sv-reveal.in { opacity: 1; transform: none; }

/* ===== Page Header ===== */
.sv-page-header {
    padding: 180px 0 80px;
    background: linear-gradient(180deg, #000 0%, #111 100%);
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.sv-page-header::after {
    content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--sv-red), transparent);
}
.sv-page-header h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 16px; }
.sv-page-header p { color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.sv-eyebrow-red {
    color: var(--sv-red); font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; font-size: 12px;
}

/* ===== Form ===== */
.sv-field { display: block; margin-bottom: 16px; }
.sv-field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sv-field input, .sv-field textarea, .sv-field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--sv-border);
    border-radius: 8px; font: inherit; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sv-field input:focus, .sv-field textarea:focus, .sv-field select:focus {
    outline: none; border-color: var(--sv-red);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

/* ===== Blog ===== */
.sv-prose h2 { margin-top: 1.6em; }
.sv-prose h3 { margin-top: 1.3em; }
.sv-prose img { border-radius: 12px; margin: 1.5em 0; }
.sv-prose blockquote {
    border-left: 4px solid var(--sv-red);
    padding: 8px 0 8px 20px; margin: 1.5em 0;
    font-style: italic; color: var(--sv-gray-text);
}
.sv-prose ul, .sv-prose ol { padding-left: 1.5em; }
.sv-prose code {
    background: var(--sv-gray); padding: 2px 6px;
    border-radius: 4px; font-size: 0.9em;
}

/* ===== Pagination ===== */
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--sv-border); border-radius: 6px;
    text-decoration: none; font-weight: 600; color: var(--sv-charcoal);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--sv-red); color: #fff; border-color: var(--sv-red);
}

/* ===== Comments ===== */
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 20px 0; border-bottom: 1px solid var(--sv-border); }
.comment-list .children { padding-left: 24px; list-style: none; }
.comment-meta { font-size: 13px; color: var(--sv-gray-text); margin-bottom: 8px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--sv-border);
    border-radius: 8px; font: inherit; margin-bottom: 12px;
}
.comment-form .submit, .comment-form input[type=submit] {
    background: var(--sv-red); color: #fff; border: 0;
    padding: 12px 24px; border-radius: 8px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
