/* ==========================================================================
   Cluster Corp - Main Stylesheet
   Dark agency theme with blue gradient accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg: #0a0e1a;
    --color-bg-alt: #0f1629;
    --color-bg-card: #111827;
    --color-bg-card-hover: #1a2238;
    --color-surface: #1e293b;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(59, 130, 246, 0.3);

    --color-text: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #60a5fa;
    --color-green: #22c55e;
    --color-purple: #a855f7;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-hero: clamp(2.5rem, 5vw, 4.5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;

    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --------------------------------------------------------------------------
   Utility: Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* --------------------------------------------------------------------------
   Utility: Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
    border-width: 1.5px;
}

.btn--outline:hover {
    border-color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.btn--white {
    background: #fff;
    color: var(--color-bg);
    font-weight: 700;
}

.btn--white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn--lg {
    padding: 0.9rem 2rem;
    font-size: var(--font-size-base);
}

/* --------------------------------------------------------------------------
   Section Labels
   -------------------------------------------------------------------------- */
.section__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 440px;
}

/* --------------------------------------------------------------------------
   HEADER / NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.header__logo:hover {
    opacity: 0.85;
}

.header__logo-text {
    letter-spacing: -0.02em;
}

.header__logo-dot {
    color: var(--color-primary);
}

/* Nav */
.header__nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link:hover::after {
    width: 100%;
}

/* Header CTA */
.header__cta {
    font-size: var(--font-size-sm);
    padding: 0.6rem 1.25rem;
}

/* Mobile Toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.header__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.header__toggle.active .header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__toggle.active .header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.header__toggle.active .header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.header__mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
    z-index: 999;
}

.header__mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.mobile-nav__link {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Title */
.hero__title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
}

.hero__title-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: var(--space-2xl);
}

/* Actions */
.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Media / Image Side */
.hero__media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero__image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonial Card */
.hero__testimonial {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.hero__testimonial-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.hero__testimonial-stars {
    color: #facc15;
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
}

/* Background Glows */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: var(--color-purple);
    bottom: -50px;
    left: -150px;
    opacity: 0.08;
}

/* --------------------------------------------------------------------------
   STATS SECTION
   -------------------------------------------------------------------------- */
.stats {
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.stats__number {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1;
}

.stats__suffix {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary-light);
}

.stats__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   SERVICES SECTION
   -------------------------------------------------------------------------- */
.services {
    padding: var(--space-5xl) 0;
}

.services__header {
    margin-bottom: var(--space-3xl);
}

.services__header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Service Card */
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

/* Icon */
.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.service-card__icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary-light);
}

.service-card__icon--green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-green);
}

.service-card__icon--purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-purple);
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* Feature List */
.service-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.service-card__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.service-card__check--green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-green);
}

.service-card__check--purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-purple);
}

/* --------------------------------------------------------------------------
   CTA BANNER SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--space-4xl) 0 var(--space-5xl);
}

.cta-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: var(--space-4xl) var(--space-3xl);
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 60%, #1e40af 100%);
}

.cta-banner__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner__particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(-40px) translateY(-40px);
    }
}

.cta-banner__content {
    position: relative;
    z-index: 1;
}

.cta-banner__title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: #fff;
}

.cta-banner__desc {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-4xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

/* Brand Column */
.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.08);
}

/* Footer Columns */
.footer__heading {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__link {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-text);
}

.footer__contact-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer__email {
    font-size: var(--font-size-sm);
    color: var(--color-primary-light);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer__email:hover {
    color: var(--color-primary);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-xl);
}

.footer__legal-link {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Page Content (for page.php / index.php)
   -------------------------------------------------------------------------- */
.page-content {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-5xl);
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.02em;
}

.entry-content {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

.entry-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin: var(--space-2xl) 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero {
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }

    .hero__media {
        max-width: 500px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-xl: 1.25rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .header__nav,
    .header__cta {
        display: none;
    }

    .header__toggle {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats__number {
        font-size: var(--font-size-4xl);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-banner {
        padding: var(--space-3xl) var(--space-xl);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .btn--lg {
        padding: 0.85rem 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Block Alignment Support (Gutenberg / Spectra)
   -------------------------------------------------------------------------- */

/* Wide alignment — stretches beyond the content container */
.entry-content .alignwide,
.wp-block-content .alignwide,
.site-main--fullwidth .alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Full-width alignment — spans the entire viewport */
.entry-content .alignfull,
.wp-block-content .alignfull,
.site-main--fullwidth .alignfull {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Center-aligned blocks */
.entry-content .aligncenter {
    display: flex;
    justify-content: center;
}

/* Responsive embeds wrapper */
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   Full-Width Template Styles
   -------------------------------------------------------------------------- */
.site-main--fullwidth {
    max-width: 100%;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.entry-content--fullwidth {
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Spectra Canvas Template Styles
   -------------------------------------------------------------------------- */
body.spectra-canvas {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.spectra-canvas__content {
    width: 100%;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Spectra / Gutenberg Block Overrides (Frontend)
   -------------------------------------------------------------------------- */

/* Spectra Container */
.uagb-container-inner-blocks-wrap {
    color: var(--color-text);
}

/* Spectra Heading */
.uagb-heading-text {
    color: var(--color-text);
    font-family: var(--font-family);
}

/* Spectra Info Box */
.uagb-ifb-content .uagb-ifb-title {
    color: var(--color-text);
}

.uagb-ifb-content .uagb-ifb-desc {
    color: var(--color-text-secondary);
}

/* Spectra Buttons */
.uagb-buttons-repeater .uagb-button__link {
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-family);
    transition: all var(--transition-base);
}

/* Spectra Testimonial */
.uagb-tm__content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.uagb-tm__desc {
    color: var(--color-text-secondary);
}

/* Spectra Counter */
.uagb-counter__number {
    font-weight: 800;
    color: var(--color-text);
}

/* Spectra Star Rating */
.uagb-star-rating svg {
    fill: #facc15;
}

/* Spectra Icon */
.uagb-icon-wrapper svg {
    fill: var(--color-primary);
}

/* Spectra Image Gallery */
.uagb-image-gallery__media-thumbnail-caption {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Gutenberg default blocks */
.wp-block-separator {
    border-color: var(--color-border);
    opacity: 1;
}

.wp-block-quote {
    border-left-color: var(--color-primary);
    padding-left: var(--space-xl);
    color: var(--color-text-secondary);
}

.wp-block-quote cite {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.wp-block-code {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    color: var(--color-primary-light);
    font-size: var(--font-size-sm);
}

.wp-block-table table {
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
}

.wp-block-table th {
    color: var(--color-text);
    font-weight: 700;
    background: var(--color-bg-card);
}

.wp-block-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wp-block-image img {
    border-radius: var(--radius-lg);
}

.wp-block-button__link {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    transition: all var(--transition-base);
    border: none;
}

.wp-block-button__link:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   ASTRA PARENT THEME OVERRIDES
   Override Astra's default light styles for our dark design
   ========================================================================== */

/* Force dark background on body and Astra wrappers */
body,
body.astra-hfb-header,
.ast-separate-container,
.ast-page-builder-template .entry-header,
#page,
#primary,
.ast-container,
.site-content {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
}

/* Override Astra's content area wrapper */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-comment-list li,
.ast-separate-container .ast-woocommerce-container {
    background-color: transparent !important;
    padding: 0;
}

/* Override Astra's default link colors */
body a,
.entry-content a,
.ast-single-post .entry-content a {
    color: var(--color-primary-light);
}

body a:hover,
.entry-content a:hover {
    color: var(--color-primary);
}

/* Override Astra heading colors */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
.entry-title,
.entry-title a,
.ast-archive-title {
    color: var(--color-text);
}

/* Override Astra paragraph/body text */
body p,
.entry-content p,
.ast-comment-content p {
    color: var(--color-text-secondary);
}

/* Disable Astra's default page header on front page */
body.is-front-page .ast-archive-description,
body.is-front-page .entry-header {
    display: none !important;
}

/* Override Astra's sidebar and widgets */
.widget,
.widget-title {
    color: var(--color-text);
}

/* Override Astra's breadcrumbs */
.ast-breadcrumbs,
.ast-breadcrumbs a {
    color: var(--color-text-muted);
}

/* Override Astra's pagination */
.ast-pagination a,
.ast-pagination span {
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.ast-pagination a:hover,
.ast-pagination span.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Make sure Astra's mobile toggle is hidden (we use our own) */
.ast-mobile-menu-buttons,
.ast-header-break-point .ast-mobile-menu-buttons {
    display: none !important;
}

/* Override Astra's comment area */
.ast-comment-list li {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

/* Override Astra's form elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: var(--color-bg-card);
    border-color: var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Remove Astra's box-shadow on contained layouts */
.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .ast-article-post {
    box-shadow: none !important;
}

/* Force Astra container to be transparent for our layout */
.ast-separate-container #content .ast-container {
    background: transparent;
}

/* Override Astra's WooCommerce styles if present */
.ast-woocommerce-container .woocommerce-result-count,
.ast-woocommerce-container .woocommerce-ordering select {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   INNER PAGE TEMPLATE (Spectra Inner Page)
   ========================================================================== */

/* Inner page hero / title area */
.inner-page__hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.inner-page__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.inner-page__hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--color-primary);
    filter: blur(120px);
    opacity: 0.08;
    top: -100px;
    right: -50px;
    pointer-events: none;
}

/* Inner page content area — full width for Spectra blocks */
.inner-page__content {
    padding: var(--space-3xl) 0 var(--space-5xl);
    background: var(--color-bg);
}

/* Allow wide and full-width Spectra blocks inside inner pages */
.inner-page__content>.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.inner-page__content>.alignfull {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Constrained blocks get the container */
.inner-page__content>*:not(.alignwide):not(.alignfull) {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* Spectra container blocks should not get extra padding */
.inner-page__content>.uagb-container-inner-blocks-wrap,
.inner-page__content>.wp-block-group.alignfull,
.inner-page__content>.wp-block-cover.alignfull,
.inner-page__content>.wp-block-columns.alignfull {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .inner-page__hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .inner-page__content {
        padding: var(--space-2xl) 0 var(--space-3xl);
    }
}