/*
Theme Name: Nexio 2026
Theme URI: https://nexio.com
Author: Nexio
Author URI: https://nexio.com
Description: Custom responsive WordPress theme with 12-column grid system. Compatible with Yoast SEO and supports featured images.
Version: 1.0.44
Requires at least: 5.8
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: nexio-theme
Tags: custom-menu, custom-logo, featured-images, full-width-template, responsive-layout, two-columns
*/

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

:root {
    /* Colors */
    --color-black: #101820;
    --color-pink: #ebc6df;
    --color-green: #40c1ac;
    --color-orange: #ff6a39;
    --color-offwhite: #f4f4f0;
    --color-white: #ffffff;
    --color-yellow: #f6eb61;

    /* Legacy aliases (used in general component CSS) */
    --color-primary: #101820;
    --color-secondary: #ffffff;
    --color-accent: #0066cc;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;

    /* Typography */
    --font-remora: 'remora-sans-w3', 'Helvetica Neue', Arial, sans-serif;
    --font-carbon: 't26-carbon', 'Courier New', monospace;

    /* Layout */
    --container-max-width: 1440px;
    --container-padding: 40px;
    --container-padding-desktop: 40px;
    --container-padding-mobile: 20px;
    --section-padding-desktop: 125px;
    --section-padding-mobile: 50px;
    --section-padding: 125px;
    --gutter: 24px;

    /* Transitions */
    --transition-base: 0.2s ease;
}

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

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

html {
    font-size: 1rem;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-remora);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-remora);
}

/* ==============================
   TYPOGRAPHY
   ============================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-remora);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}
h2 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
}
h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}
h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}
h5 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}
h6 {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
}

.font-remora {
    font-family: var(--font-remora);
}
.font-carbon {
    font-family: var(--font-carbon);
}

/* ==============================
   LAYOUT: CONTAINER
   ============================== */

.container {
    max-width: var(--container-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==============================
   LAYOUT: 12-COLUMN GRID SYSTEM
   ============================== */

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    width: 100%;
}

/* Gap variants */
.row-gap-0 {
    gap: 0;
}
.row-gap-sm {
    gap: 12px;
}
.row-gap-lg {
    gap: 40px;
}
.row-gap-xl {
    gap: 60px;
}

/* Ensure all column children respect the grid */
[class*='col-'] {
    min-width: 0;
}

/* ===== DESKTOP COLUMNS (1025px and above) ===== */

@media (min-width: 1025px) {
    .col-1 {
        grid-column: span 1;
    }
    .col-2 {
        grid-column: span 2;
    }
    .col-3 {
        grid-column: span 3;
    }
    .col-4 {
        grid-column: span 4;
    }
    .col-5 {
        grid-column: span 5;
    }
    .col-6 {
        grid-column: span 6;
    }
    .col-7 {
        grid-column: span 7;
    }
    .col-8 {
        grid-column: span 8;
    }
    .col-9 {
        grid-column: span 9;
    }
    .col-10 {
        grid-column: span 10;
    }
    .col-11 {
        grid-column: span 11;
    }
    .col-12 {
        grid-column: span 12;
    }

    /* Desktop: column start offsets */
    .col-offset-1 {
        grid-column-start: 2;
    }
    .col-offset-2 {
        grid-column-start: 3;
    }
    .col-offset-3 {
        grid-column-start: 4;
    }
    .col-offset-4 {
        grid-column-start: 5;
    }
    .col-offset-5 {
        grid-column-start: 6;
    }
    .col-offset-6 {
        grid-column-start: 7;
    }
}

/* ===== TABLET COLUMNS (768px – 1024px) ===== */

@media (min-width: 768px) and (max-width: 1024px) {
    /* col-* default to full-width on tablet unless col-md-* overrides */
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        grid-column: span 12;
    }

    .col-md-1 {
        grid-column: span 1;
    }
    .col-md-2 {
        grid-column: span 2;
    }
    .col-md-3 {
        grid-column: span 3;
    }
    .col-md-4 {
        grid-column: span 4;
    }
    .col-md-5 {
        grid-column: span 5;
    }
    .col-md-6 {
        grid-column: span 6;
    }
    .col-md-7 {
        grid-column: span 7;
    }
    .col-md-8 {
        grid-column: span 8;
    }
    .col-md-9 {
        grid-column: span 9;
    }
    .col-md-10 {
        grid-column: span 10;
    }
    .col-md-11 {
        grid-column: span 11;
    }
    .col-md-12 {
        grid-column: span 12;
    }

    /* Tablet offsets */
    .col-md-offset-1 {
        grid-column-start: 2;
    }
    .col-md-offset-2 {
        grid-column-start: 3;
    }
    .col-md-offset-3 {
        grid-column-start: 4;
    }
    .col-md-offset-4 {
        grid-column-start: 5;
    }
    .col-md-offset-5 {
        grid-column-start: 6;
    }
    .col-md-offset-6 {
        grid-column-start: 7;
    }
}

/* ===== MOBILE COLUMNS (767px and below) ===== */

@media (max-width: 767px) {
    /* col-* and col-md-* all default to full-width on mobile */
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        grid-column: span 12;
    }

    .col-sm-1 {
        grid-column: span 1;
    }
    .col-sm-2 {
        grid-column: span 2;
    }
    .col-sm-3 {
        grid-column: span 3;
    }
    .col-sm-4 {
        grid-column: span 4;
    }
    .col-sm-5 {
        grid-column: span 5;
    }
    .col-sm-6 {
        grid-column: span 6;
    }
    .col-sm-7 {
        grid-column: span 7;
    }
    .col-sm-8 {
        grid-column: span 8;
    }
    .col-sm-9 {
        grid-column: span 9;
    }
    .col-sm-10 {
        grid-column: span 10;
    }
    .col-sm-11 {
        grid-column: span 11;
    }
    .col-sm-12 {
        grid-column: span 12;
    }
}

/* ==============================
   LAYOUT: SECTION
   ============================== */

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-sm {
    padding-top: calc(var(--section-padding) * 0.5);
    padding-bottom: calc(var(--section-padding) * 0.5);
}

.section-lg {
    padding-top: calc(var(--section-padding) * 1.5);
    padding-bottom: calc(var(--section-padding) * 1.5);
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --container-padding: 30px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
        --gutter: 16px;
    }
}

/* ==============================
   SITE HEADER
   ============================== */

.site-header {
    position: static;
    background-color: var(--color-offwhite);
    width: 100%;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo a {
    display: block;
}

.site-logo .site-name {
    font-family: var(--font-remora);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.main-nav > ul,
.main-nav #primary-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav > ul > li > a,
.main-nav #primary-menu > li > a {
    font-family: var(--font-remora);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.main-nav > ul > li > a::after,
.main-nav #primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: width var(--transition-base);
}

.main-nav > ul > li > a:hover,
.main-nav #primary-menu > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav #primary-menu > li.current-menu-item > a,
.main-nav > ul > li.current-page-ancestor > a,
.main-nav #primary-menu > li.current-page-ancestor > a {
    color: var(--color-text);
}

.main-nav > ul > li > a:hover::after,
.main-nav #primary-menu > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav #primary-menu > li.current-menu-item > a::after {
    width: 100%;
}

/* Sign In / nav dropdown */
.main-nav .nav-dropdown {
    position: relative;
}

.main-nav .nav-dropdown-toggle {
    font-family: var(--font-remora);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.main-nav .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: width var(--transition-base);
}

.main-nav .nav-dropdown-toggle:hover,
.main-nav .nav-dropdown.is-open > .nav-dropdown-toggle,
.main-nav .nav-dropdown:focus-within > .nav-dropdown-toggle {
    color: var(--color-text);
}

.main-nav .nav-dropdown-icon {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.main-nav .nav-dropdown-menu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 212px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow:
        0 4px 6px rgba(16, 24, 32, 0.04),
        0 12px 28px rgba(16, 24, 32, 0.1);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

/* Invisible bridge so hover isn’t lost moving into the menu */
.main-nav .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.main-nav .nav-dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
}

.main-nav .nav-dropdown-menu li + li {
    border-top: 1px solid var(--color-border);
}

.main-nav .nav-dropdown-menu a {
    display: block;
    padding: 11px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    border-radius: 6px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.main-nav .nav-dropdown-menu a::after {
    display: none;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus-visible {
    background-color: rgba(64, 193, 172, 0.12);
    color: var(--color-primary);
}

/* Desktop: open on hover / keyboard focus */
@media (min-width: 1025px) {
    .main-nav .nav-dropdown:hover > .nav-dropdown-toggle::after,
    .main-nav .nav-dropdown:focus-within > .nav-dropdown-toggle::after {
        width: 100%;
    }

    .main-nav .nav-dropdown:hover > .nav-dropdown-toggle .nav-dropdown-icon,
    .main-nav .nav-dropdown:focus-within > .nav-dropdown-toggle .nav-dropdown-icon,
    .main-nav .nav-dropdown.is-open > .nav-dropdown-toggle .nav-dropdown-icon {
        transform: rotate(-135deg);
        margin-top: -2px;
    }

    .main-nav .nav-dropdown:hover > .nav-dropdown-menu,
    .main-nav .nav-dropdown:focus-within > .nav-dropdown-menu,
    .main-nav .nav-dropdown.is-open > .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Nav Toggle (hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav overlay — not used with full-screen nav */
.nav-overlay {
    display: none;
}

/* ==============================
   MOBILE/TABLET NAVIGATION
   ============================== */

@media (max-width: 1024px) {
    .site-header {
        position: relative;
        z-index: 10002;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        z-index: 9999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav > ul,
    .main-nav #primary-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-nav > ul > li,
    .main-nav #primary-menu > li {
        width: auto;
        text-align: center;
    }

    .main-nav > ul > li > a,
    .main-nav #primary-menu > li > a {
        font-size: 2rem;
        display: block;
        padding: 16px 24px;
        border-bottom: none;
        text-align: center;
    }

    .main-nav > ul > li > a::after,
    .main-nav #primary-menu > li > a::after {
        display: none;
    }

    .main-nav .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-dropdown-toggle {
        font-size: 2rem;
        width: 100%;
        justify-content: center;
        min-height: 56px;
        padding: 16px 24px;
    }

    .main-nav .nav-dropdown-toggle::after {
        display: none;
    }

    .main-nav .nav-dropdown.is-open > .nav-dropdown-toggle .nav-dropdown-icon {
        transform: rotate(-135deg);
        margin-top: -2px;
    }

    .main-nav .nav-dropdown-menu {
        display: block;
        position: static;
        width: 100%;
        min-width: 0;
        max-width: 300px;
        margin: 0 auto 8px;
        padding: 6px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        box-shadow: none;
        background-color: var(--color-offwhite);
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: none;
        transition:
            max-height 0.25s ease,
            visibility 0.25s ease,
            margin 0.25s ease;
    }

    .main-nav .nav-dropdown-menu::before {
        display: none;
    }

    .main-nav .nav-dropdown.is-open > .nav-dropdown-menu {
        visibility: visible;
        pointer-events: auto;
        max-height: 280px;
        margin-bottom: 12px;
    }

    .main-nav .nav-dropdown-menu a {
        font-size: 1.25rem;
        padding: 16px 20px;
        min-height: 52px;
        text-align: center;
    }
}

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

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding-top: 80px;
    padding-bottom: 40px;
}

.site-footer a {
    color: var(--color-secondary);
    transition: opacity var(--transition-base);
}

.site-footer a:hover {
    opacity: 0.7;
    color: var(--color-secondary);
}

.site-footer h4,
.site-footer h5 {
    color: var(--color-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    opacity: 0.65;
}

/* ==============================
   PAGE HERO / FEATURED IMAGE
   ============================== */

.page-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.page-hero .featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.page-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.55)
    );
    color: var(--color-secondary);
    padding: 40px;
}

.page-hero-content h1,
.page-hero-content h2 {
    color: var(--color-secondary);
}

@media (max-width: 767px) {
    .page-hero .featured-image {
        height: 300px;
    }
}

/* ==============================
   ENTRY CONTENT (WYSIWYG)
   ============================== */

.entry-content {
    font-family: var(--font-remora);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    list-style: initial;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
    background-color: var(--color-bg-alt);
}

.entry-content img {
    border-radius: 4px;
    margin: 1.5rem 0;
}

.entry-content a {
    text-decoration: underline;
}

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

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background-color: var(--color-bg-alt);
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-remora);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    line-height: 1;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-white {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.125rem;
}

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

/* Display */
.d-flex {
    display: flex;
}
.d-grid {
    display: grid;
}
.d-block {
    display: block;
}
.d-inline {
    display: inline;
}
.d-none {
    display: none;
}

/* Flex utilities */
.align-center {
    align-items: center;
}
.align-start {
    align-items: flex-start;
}
.align-end {
    align-items: flex-end;
}
.align-stretch {
    align-items: stretch;
}

.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.justify-end {
    justify-content: flex-end;
}
.justify-start {
    justify-content: flex-start;
}

.flex-wrap {
    flex-wrap: wrap;
}
.flex-column {
    flex-direction: column;
}

.gap-xs {
    gap: 8px;
}
.gap-sm {
    gap: 12px;
}
.gap-md {
    gap: 24px;
}
.gap-lg {
    gap: 40px;
}
.gap-xl {
    gap: 60px;
}

/* Text alignment */
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

/* Text transform */
.text-upper {
    text-transform: uppercase;
}
.text-lower {
    text-transform: lowercase;
}

/* Margin utilities */
.mt-0 {
    margin-top: 0 !important;
}
.mt-1 {
    margin-top: 8px;
}
.mt-2 {
    margin-top: 16px;
}
.mt-3 {
    margin-top: 24px;
}
.mt-4 {
    margin-top: 32px;
}
.mt-5 {
    margin-top: 48px;
}
.mt-6 {
    margin-top: 64px;
}

.mb-0 {
    margin-bottom: 0 !important;
}
.mb-1 {
    margin-bottom: 8px;
}
.mb-2 {
    margin-bottom: 16px;
}
.mb-3 {
    margin-bottom: 24px;
}
.mb-4 {
    margin-bottom: 32px;
}
.mb-5 {
    margin-bottom: 48px;
}
.mb-6 {
    margin-bottom: 64px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding utilities */
.pt-0 {
    padding-top: 0 !important;
}
.pb-0 {
    padding-bottom: 0 !important;
}
.p-0 {
    padding: 0 !important;
}

/* Background colors */
.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}
.bg-secondary {
    background-color: var(--color-secondary);
}
.bg-alt {
    background-color: var(--color-bg-alt);
}
.bg-accent {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}
.bg-white {
    background-color: #ffffff;
}
.bg-black {
    background-color: #000000;
    color: #ffffff;
}

/* Text colors */
.text-primary {
    color: var(--color-primary);
}
.text-secondary {
    color: var(--color-secondary);
}
.text-accent {
    color: var(--color-accent);
}
.text-muted {
    color: var(--color-text-light);
}
.text-white {
    color: #ffffff;
}

/* Width */
.w-full {
    width: 100%;
}
.w-auto {
    width: auto;
}
.h-full {
    height: 100%;
}

/* Position */
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}

/* Border radius */
.rounded {
    border-radius: 4px;
}
.rounded-md {
    border-radius: 8px;
}
.rounded-lg {
    border-radius: 16px;
}
.rounded-full {
    border-radius: 9999px;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}
.object-contain {
    object-fit: contain;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

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

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
    .show-mobile {
        display: none !important;
    }
    .show-tablet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .show-desktop {
        display: none !important;
    }
    .show-tablet {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .show-desktop {
        display: none !important;
    }
    .show-mobile {
        display: none !important;
    }
}

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

.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404 .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
    font-family: var(--font-carbon);
    display: block;
    margin-bottom: 1rem;
}

/* ==============================
   SIDEBAR LAYOUT
   ============================== */

.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-widget {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

/* ==============================
   WORDPRESS CORE ALIGNMENTS
   ============================== */

.alignnone {
    margin: 0;
}
.aligncenter {
    display: block;
    margin: 1.5rem auto;
}
.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.alignfull {
    max-width: 100%;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
}

/* WordPress gallery */
.gallery {
    margin-bottom: 1.5rem;
}
.gallery-item {
    display: inline-block;
    vertical-align: top;
}
.gallery-caption {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* WordPress captions */
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Salesforce consent banner overrides */
.sf-consent__content {
    border: 2px solid var(--color-black) !important;
    box-shadow: -4px 4px 0 0 var(--color-black) !important;
}

.sf-consent__header__title {
    color: var(--color-black);
}

.sf-consent__content .modal-main button.default {
    color: var(--color-black);
    background-color: #ffffff;
    border-color: var(--color-black);
}

.sf-consent__content .modal-main button.primary {
    background-color: var(--color-black);
    border-color: var(--color-black);
}

.sf-consent__content .modal-main a {
    color: var(--color-black);
    border-bottom: 1px solid var(--color-black);
}
