/**
 * NowBiz Public Pages - Premium Marketing Styles
 *
 * Apple/Nikon/BMW-inspired styling for Home, Product, and About pages.
 * Uses the NowBiz design token system with premium extensions.
 *
 * @package NowBiz
 * @since 1.0.0
 */

/* ==========================================================================
   Premium Design Tokens
   ========================================================================== */

:root {
    /* Premium Spacing */
    --premium-section-padding: 100px;
    --premium-section-padding-lg: 100px;
    --premium-hero-padding: 100px;
    --premium-content-gap: 80px;

    /* Premium Typography */
    --premium-heading-tracking: 0.02em;
    --premium-heading-tracking-wide: 0.05em;
    --premium-body-tracking: 0.01em;

    /* Premium Transitions */
    --premium-transition: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --premium-transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Premium Colors */
    --premium-bg-light: #fafafa;
    --premium-bg-dark: #111111;
    --premium-text-dark: #1a1a1a;
    --premium-text-light: #ffffff;
    --premium-text-muted: #6b7280;
    --premium-border-subtle: rgba(0, 0, 0, 0.06);

    /* Premium Shadows */
    --premium-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --premium-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --premium-shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Public Page Layout - No Sidebar
   ========================================================================== */

.nb-public-page {
    width: 100%;
    min-height: 100vh;
    background: var(--premium-bg-light);
}

.nb-public-main {
    /* No padding - hero sections extend behind the fixed header for flush effect */
}

/* WordPress Admin Bar Offset */
body.admin-bar .nb-public-header {
    top: 32px; /* Desktop admin bar height */
}

/* Mobile admin bar is taller (46px) */
@media screen and (max-width: 782px) {
    body.admin-bar .nb-public-header {
        top: 46px;
    }
}

/* When admin bar collapses to fixed position on smaller screens */
@media screen and (max-width: 600px) {
    body.admin-bar .nb-public-header {
        top: 0; /* Admin bar scrolls away on small mobile */
    }
}

/* Override app shell for public pages */
body.nb-public-layout .nowbiz-app-shell {
    display: block;
}

body.nb-public-layout .nowbiz-sidebar {
    display: none;
}

body.nb-public-layout .nowbiz-main-content {
    margin-left: 0;
    padding: 0;
    max-width: 100%;
}

/* ==========================================================================
   Public Header - Minimal Navigation
   ========================================================================== */

.nb-public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 64px; /* Match application topnav height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--premium-border-subtle);
    transition: var(--premium-transition);
}

.nb-public-header--transparent {
    background: transparent;
    border-bottom-color: transparent;
}

.nb-public-header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--premium-border-subtle);
    box-shadow: var(--premium-shadow-subtle);
}

.nb-public-header__logo {
    display: flex;
    align-items: center;
}

.nb-public-header__logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nb-public-header__logo img {
    height: 56px; /* Maximized: 64px header - 5px top - 3px bottom */
    width: auto;
    margin-top: 5px;
    margin-bottom: 3px;
}

.nb-public-header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nb-public-header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nb-public-header__menu-item a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--premium-text-dark);
    text-decoration: none;
    letter-spacing: var(--premium-body-tracking);
    transition: var(--premium-transition);
    opacity: 0.8;
}

.nb-public-header__menu-item a:hover {
    opacity: 1;
}

.nb-public-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile menu toggle */
.nb-public-header__toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nb-public-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--premium-text-dark);
    margin: 5px 0;
    transition: var(--premium-transition);
}

/* ==========================================================================
   User Dropdown Menu
   ========================================================================== */

.nb-user-dropdown {
    position: relative;
}

.nb-user-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--premium-border-subtle);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--premium-text-dark);
    transition: var(--premium-transition);
}

.nb-user-dropdown__trigger:hover {
    background: var(--premium-bg-light);
    border-color: rgba(0, 0, 0, 0.12);
}

.nb-user-dropdown__name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nb-user-dropdown__arrow {
    transition: transform var(--premium-transition);
}

.nb-user-dropdown.is-open .nb-user-dropdown__arrow {
    transform: rotate(180deg);
}

.nb-user-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--premium-border-subtle);
    border-radius: 12px;
    box-shadow: var(--premium-shadow-elevated);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--premium-transition);
    z-index: 1001;
}

.nb-user-dropdown.is-open .nb-user-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nb-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--premium-text-dark);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-user-dropdown__item:hover {
    background: var(--premium-bg-light);
}

.nb-user-dropdown__icon {
    font-size: 1rem;
    line-height: 1;
}

.nb-user-dropdown__divider {
    height: 1px;
    background: var(--premium-border-subtle);
    margin: 8px 0;
}

.nb-user-dropdown__item--logout {
    color: #dc2626;
}

.nb-user-dropdown__item--logout:hover {
    background: #fef2f2;
}

/* ==========================================================================
   Button Enhancements for Public Pages

   Uses standard .nowbiz-btn classes from design system with
   additional styles for marketing page context.
   ========================================================================== */

/* Enhanced button styling for public pages */
.nb-public-page .nowbiz-btn {
    transition: var(--premium-transition);
}

.nb-public-page .nowbiz-btn--lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Ensure buttons in hero work on light overlay */
.nb-hero--with-background .nowbiz-btn--secondary {
    border-color: var(--premium-text-dark);
    color: var(--premium-text-dark);
}

.nb-hero--with-background .nowbiz-btn--secondary:hover {
    background: var(--premium-text-dark);
    color: var(--premium-text-light);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.nb-hero--premium {
    position: relative;
    width: 100%;
    min-height: 80vh;
    max-height: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Extra top padding to account for 64px fixed header */
    padding: calc(var(--premium-hero-padding) + 64px) 40px var(--premium-hero-padding) 40px;
    text-align: center;
    overflow: hidden;
}

/* Admin bar adjustment for hero */
body.admin-bar .nb-hero--premium {
    padding-top: calc(var(--premium-hero-padding) + 96px); /* header + admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .nb-hero--premium {
        padding-top: calc(var(--premium-hero-padding) + 110px);
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .nb-hero--premium {
        padding-top: calc(var(--premium-hero-padding) + 64px);
    }
}

/* Full-width hero with background image */
.nb-hero--with-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nb-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    z-index: 0;
}

.nb-hero--with-background .nb-hero__content {
    position: relative;
    z-index: 1;
}

.nb-hero--premium-short {
    min-height: 0;
    /* Extra top padding to account for fixed header */
    padding: calc(40px + 64px) 40px 40px 40px;
}

body.admin-bar .nb-hero--premium-short {
    padding-top: calc(40px + 96px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .nb-hero--premium-short {
        padding-top: calc(40px + 110px);
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .nb-hero--premium-short {
        padding-top: calc(40px + 64px);
    }
}

/* Compact hero for contact page - max 500px total height */
.nb-page--contact .nb-hero--premium-short {
    min-height: 0;
    max-height: 500px;
    padding: calc(40px + 64px) 40px 40px 40px;
}

body.admin-bar .nb-page--contact .nb-hero--premium-short {
    padding-top: calc(40px + 96px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .nb-page--contact .nb-hero--premium-short {
        padding-top: calc(40px + 110px);
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .nb-page--contact .nb-hero--premium-short {
        padding-top: calc(40px + 64px);
    }
}

.nb-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.nb-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-hero__background--gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.nb-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.nb-hero__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: var(--premium-heading-tracking-wide);
    text-transform: uppercase;
    color: var(--nowbiz-primary, #0066FF);
    margin-bottom: 24px;
}

.nb-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--premium-text-dark);
    margin: 0 0 24px 0;
}

.nb-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--premium-text-muted);
    margin: 0 0 48px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.nb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.nb-hero__image {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    max-width: 1000px;
    width: 100%;
}

.nb-hero__image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--premium-shadow-elevated);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.nb-section--premium {
    padding: var(--premium-section-padding) 40px;
}

.nb-section--premium-lg {
    padding: var(--premium-section-padding-lg) 40px;
}

.nb-section--light {
    background: var(--premium-bg-light);
}

.nb-section--white {
    background: #ffffff;
}

.nb-section--dark {
    background: var(--premium-bg-dark);
    color: var(--premium-text-light);
}

.nb-section--dark .nb-heading--display,
.nb-section--dark .nb-heading--section {
    color: var(--premium-text-light);
}

.nb-section--dark .nb-text--lead {
    color: rgba(255, 255, 255, 0.7);
}

.nb-section__container {
    max-width: 1200px;
    margin: 0 auto;
}

.nb-section__container--wide {
    max-width: 1400px;
}

.nb-section__container--narrow {
    max-width: 800px;
}

.nb-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--premium-content-gap) auto;
}

/* ==========================================================================
   Premium Typography
   ========================================================================== */

.nb-heading--display {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--premium-text-dark);
    margin: 0;
}

.nb-heading--section {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--premium-text-dark);
    margin: 0;
}

.nb-heading--subsection {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--premium-text-dark);
    margin: 0;
}

.nb-text--lead {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--premium-text-muted);
    letter-spacing: var(--premium-body-tracking);
}

.nb-text--body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--premium-text-muted);
}

/* ==========================================================================
   Product Columns - 2-Column Layout (Image + Copy)
   ========================================================================== */

.nb-product-columns {
    gap: var(--premium-content-gap) !important;
    align-items: center;
    margin-bottom: 0 !important;
}

.nb-product-columns__image {
    display: flex;
    align-items: center;
}

.nb-product-columns__image .nb-product-image {
    margin: 0;
}

.nb-product-columns__image .nb-product-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--premium-shadow-card);
}

.nb-product-columns__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Reverse layout - on desktop, swap visual order */
@media (min-width: 782px) {
    .nb-product-columns--reverse {
        flex-direction: row-reverse;
    }
}

/* ==========================================================================
   Feature Rows - Image + Text (Legacy)
   ========================================================================== */

.nb-feature-row--premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--premium-content-gap);
    align-items: center;
}

.nb-feature-row--premium.nb-feature-row--reverse {
    direction: rtl;
}

.nb-feature-row--premium.nb-feature-row--reverse > * {
    direction: ltr;
}

.nb-feature-row__image {
    position: relative;
}

.nb-feature-row__image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--premium-shadow-card);
}

.nb-feature-row__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nb-feature-row__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: var(--premium-heading-tracking-wide);
    text-transform: uppercase;
    color: var(--nowbiz-primary, #0066FF);
}

.nb-feature-row__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--premium-text-dark);
    margin: 0;
}

.nb-feature-row__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--premium-text-muted);
}

.nb-feature-row__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nb-feature-row__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--premium-text-dark);
}

.nb-feature-row__list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--nowbiz-primary, #0066FF);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   Product/Feature Cards
   ========================================================================== */

.nb-card-grid--premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.nb-card-grid--premium-4 {
    grid-template-columns: repeat(4, 1fr);
}

.nb-card-grid--premium-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nb-card--premium {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    transition: var(--premium-transition);
    border: 1px solid var(--premium-border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nb-card--premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--premium-shadow-card);
}

.nb-card__icon {
    width: 100%;
    height: 140px;
    margin: 0;
    background: var(--premium-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nb-card__icon img,
.nb-card__icon .wp-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-card__icon figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Card content area below the image */
.nb-card--premium .nb-card__title,
.nb-card--premium .nb-card__description,
.nb-card--premium .nb-card__link {
    padding-left: 24px;
    padding-right: 24px;
}

.nb-card--premium .nb-card__title {
    padding-top: 24px;
}

.nb-card--premium .nb-card__link {
    padding-bottom: 24px;
}

.nb-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 12px 0;
}

.nb-card__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--premium-text-muted);
    margin: 0;
    flex-grow: 1;
}

.nb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--nowbiz-primary, #0066FF);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-card__link:hover {
    gap: 12px;
}

.nb-card__link::after {
    content: '→';
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */

.nb-cta--premium {
    text-align: center;
    padding: var(--premium-section-padding-lg) 40px;
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    color: var(--premium-text-light);
}

.nb-cta--premium .nb-heading--section {
    color: var(--premium-text-light);
}

.nb-cta--premium .nb-text--lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nb-cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.nb-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.nb-cta__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: #ffffff;
}

.nb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* White button variants for CTA sections (blue background) */
.nowbiz-btn--white,
.nb-cta--premium .nowbiz-btn--white {
    background: var(--premium-text-light);
    color: var(--nowbiz-primary, #0066FF);
    border-color: var(--premium-text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nowbiz-btn--white:hover,
.nb-cta--premium .nowbiz-btn--white:hover {
    background: var(--premium-bg-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nowbiz-btn--outline-white,
.nb-cta--premium .nowbiz-btn--outline-white {
    background: transparent;
    color: var(--premium-text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.nowbiz-btn--outline-white:hover,
.nb-cta--premium .nowbiz-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--premium-text-light);
}

/* ==========================================================================
   Stats/Numbers Section
   ========================================================================== */

.nb-stats--premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
    padding: 60px 0;
}

.nb-stat__number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--nowbiz-primary, #0066FF);
    margin-bottom: 12px;
}

.nb-stat__label {
    font-size: 1rem;
    color: var(--premium-text-muted);
}

/* ==========================================================================
   Values/About Cards
   ========================================================================== */

.nb-value-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 32px;
    border: 1px solid var(--premium-border-subtle);
    transition: var(--premium-transition);
}

.nb-value-card:hover {
    border-color: var(--nowbiz-primary, #0066FF);
}

.nb-value-card__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 16px 0;
}

.nb-value-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--premium-text-muted);
    margin: 0;
}

/* ==========================================================================
   Public Footer
   ========================================================================== */

.nb-public-footer {
    background: var(--premium-bg-dark);
    color: var(--premium-text-light);
    padding: 80px 40px 40px 40px;
}

.nb-public-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nb-public-footer__brand {
    max-width: 300px;
}

.nb-public-footer__logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--premium-text-light);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.nb-public-footer__logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nb-public-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.nb-public-footer__column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: var(--premium-heading-tracking-wide);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px 0;
}

.nb-public-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-public-footer__links li {
    margin-bottom: 12px;
}

.nb-public-footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-public-footer__links a:hover {
    color: var(--premium-text-light);
}

.nb-public-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.nb-public-footer__copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.nb-public-footer__social {
    display: flex;
    gap: 16px;
}

.nb-public-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--premium-text-light);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-public-footer__social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1199px) {
    .nb-card-grid--premium-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 991px) {
    :root {
        --premium-section-padding: 60px;
        --premium-section-padding-lg: 80px;
        --premium-hero-padding: 80px;
        --premium-content-gap: 60px;
    }

    .nb-feature-row--premium {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nb-feature-row--premium.nb-feature-row--reverse {
        direction: ltr;
    }

    .nb-feature-row__image {
        order: -1;
    }
}

@media (max-width: 767px) {
    :root {
        --premium-section-padding: 40px;
        --premium-section-padding-lg: 60px;
        --premium-hero-padding: 60px;
        --premium-content-gap: 40px;
    }

    .nb-public-header {
        padding: 0 20px;
        height: 64px; /* Match application topnav height */
    }

    .nb-public-header__nav {
        display: none;
    }

    .nb-public-header__toggle {
        display: block;
    }

    .nb-hero--premium,
    .nb-section--premium,
    .nb-section--premium-lg,
    .nb-cta--premium {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nb-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .nb-hero__actions .nowbiz-btn--premium {
        width: 100%;
    }

    .nb-card-grid--premium-4,
    .nb-card-grid--premium-3 {
        grid-template-columns: 1fr;
    }

    .nb-public-footer {
        padding: 60px 20px 30px 20px;
    }

    .nb-public-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nb-public-footer__bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ==========================================================================
   Animations (Optional Enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .nb-fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .nb-fade-in.nb-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   WordPress Block Editor Overrides
   ========================================================================== */

.nb-public-page .wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
}

.nb-public-page .wp-block-image {
    margin: 0;
}

.nb-public-page .wp-block-columns {
    margin-bottom: 0;
}

.nb-public-page .wp-block-buttons {
    margin-top: 0;
}

/* Ensure Gutenberg blocks inherit our premium styles */
.nb-public-page .wp-block-heading.nb-heading--display,
.nb-public-page .wp-block-heading.nb-heading--section {
    margin-top: 0;
}

/* ==========================================================================
   Login Page

   Premium branded login page following Apple/minimalist design principles.
   Centered card layout with branding and authentication form.
   ========================================================================== */

.nb-page--login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Top padding accounts for fixed header */
    padding: calc(64px + 40px) 20px 40px 20px;
    background: linear-gradient(180deg, var(--premium-bg-light) 0%, #ffffff 100%);
}

/* Adjust login page for admin bar */
body.admin-bar .nb-page--login {
    min-height: calc(100vh - 32px);
    padding-top: calc(96px + 40px); /* header + admin bar + spacing */
}

@media screen and (max-width: 782px) {
    body.admin-bar .nb-page--login {
        min-height: calc(100vh - 46px);
        padding-top: calc(110px + 40px);
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .nb-page--login {
        min-height: 100vh;
        padding-top: calc(64px + 40px);
    }
}

.nb-login {
    width: 100%;
    max-width: 420px;
}

.nb-login__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Branding Section */
.nb-login__branding {
    text-align: center;
}

.nb-login__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.nb-login__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.nb-login__tagline {
    font-size: 1rem;
    color: var(--premium-text-muted);
    margin: 0;
}

/* Login Card */
.nb-login__card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--premium-border-subtle);
}

.nb-login__heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Error Message */
.nb-login__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Form Fields */
.nb-login__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nb-login__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nb-login__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--premium-text-dark);
}

.nb-login__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--premium-border-subtle);
    border-radius: 8px;
    background: #ffffff;
    color: var(--premium-text-dark);
    transition: var(--premium-transition);
}

.nb-login__input:focus {
    outline: none;
    border-color: var(--nowbiz-primary, #0066FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.nb-login__input::placeholder {
    color: var(--premium-text-muted);
}

/* Remember Me & Forgot Password Row */
.nb-login__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nb-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--premium-text-muted);
    cursor: pointer;
}

.nb-login__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--nowbiz-primary, #0066FF);
    cursor: pointer;
}

.nb-login__link {
    font-size: 0.875rem;
    color: var(--nowbiz-primary, #0066FF);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-login__link:hover {
    color: var(--nowbiz-primary-dark, #0052cc);
    text-decoration: underline;
}

.nb-login__link--primary {
    font-weight: 500;
}

/* Full Width Button */
.nowbiz-btn--full {
    width: 100%;
    justify-content: center;
}

/* Footer Links */
.nb-login__footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--premium-border-subtle);
    text-align: center;
}

.nb-login__footer-text {
    font-size: 0.875rem;
    color: var(--premium-text-muted);
    margin: 0;
}

.nb-login__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    color: var(--premium-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nb-login__divider::before,
.nb-login__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--premium-border-subtle);
}

/* Back to Home Link */
.nb-login__back {
    margin-top: 8px;
}

.nb-login__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--premium-text-muted);
    text-decoration: none;
    transition: var(--premium-transition);
}

.nb-login__back-link:hover {
    color: var(--premium-text-dark);
}

.nb-login__back-link svg {
    transition: transform var(--premium-transition);
}

.nb-login__back-link:hover svg {
    transform: translateX(-4px);
}

/* Cloudflare Turnstile Widget */
.nb-login__turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.nb-login__turnstile .cf-turnstile {
    margin: 0 auto;
}

/* Responsive Login Adjustments */
@media (max-width: 480px) {
    .nb-login__card {
        padding: 24px;
    }

    .nb-login__options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nb-login__icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .nb-login__title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Contact Page

   Premium contact page with form and company information.
   ========================================================================== */

.nb-page--contact {
    background: var(--premium-bg-light);
}

/* Contact Form */
.nb-contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.nb-contact__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nb-contact__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--premium-text-dark);
}

.nb-contact__label .required {
    color: #dc2626;
}

.nb-contact__input,
.nb-contact__textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--premium-border-subtle);
    border-radius: 8px;
    background: #ffffff;
    color: var(--premium-text-dark);
    transition: var(--premium-transition);
}

.nb-contact__input:focus,
.nb-contact__textarea:focus {
    outline: none;
    border-color: var(--nowbiz-primary, #0066FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.nb-contact__textarea {
    resize: vertical;
    min-height: 150px;
}

/* Success Message */
.nb-contact__success {
    text-align: center;
    padding: 60px 20px;
}

.nb-contact__success svg {
    margin-bottom: 24px;
}

.nb-contact__success h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 12px 0;
}

.nb-contact__success p {
    font-size: 1.125rem;
    color: var(--premium-text-muted);
    margin: 0 0 32px 0;
}

/* Error Message */
.nb-contact__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

/* Contact Info Grid */
.nb-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.nb-contact__info-card {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--premium-border-subtle);
    transition: var(--premium-transition);
}

.nb-contact__info-card:hover {
    box-shadow: var(--premium-shadow-card);
    transform: translateY(-2px);
}

.nb-contact__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    color: var(--nowbiz-primary, #0066FF);
    margin-bottom: 16px;
}

.nb-contact__info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--premium-text-dark);
    margin: 0 0 8px 0;
}

.nb-contact__info-card p {
    font-size: 0.9375rem;
    color: var(--premium-text-muted);
    margin: 0;
}

.nb-contact__info-card a {
    color: var(--nowbiz-primary, #0066FF);
    text-decoration: none;
}

.nb-contact__info-card a:hover {
    text-decoration: underline;
}

/* Responsive Contact */
@media (max-width: 991px) {
    .nb-contact__info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.nb-404-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--premium-section-padding) var(--nb-space-6);
    text-align: center;
}

.nb-404-page__code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--nb-color-primary);
    margin-bottom: var(--nb-space-4);
}

.nb-404-page__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--nb-space-4);
}

.nb-404-page__message {
    font-size: 1.125rem;
    color: var(--nb-color-text-muted);
    margin-bottom: var(--nb-space-8);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.nb-404-page__actions {
    display: flex;
    justify-content: center;
    gap: var(--nb-space-4);
}
