/* ============================================================================
   PROMETHEUS ELEGANT THEME - Professional & Elegant Design
   Prometheus Systems (prometheus-systems.co.za)
   
   Color Palette:
   - Primary Blue:    #3085EE
   - Burnt Orange:    #cc5500 (accent)
   - Dark:            #000000 (black)
   - Medium Dark:     #454d5d
   - Light:           #ffffff
   - Off-White:       #f8f9fc
   - Gold Accent:     #d4a843
   ============================================================================ */

/* ============================================================================
   TYPOGRAPHY - Trajan Pro + System Fallbacks
   ============================================================================ */

@font-face {
    font-family: 'TrajanPro';
    src: url('../fonts/TrajanPro-Regular.woff2') format('woff2'),
         url('../fonts/TrajanPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #3085EE;
    --color-primary-dark: #1a5bbf;
    --color-primary-light: #5ba0f5;
    --color-accent: #cc5500;
    --color-accent-light: #e06600;
    --color-accent-hover: #ff6600;
    --color-gold: #d4a843;
    --color-gold-light: #e8c46e;
    --color-dark: #000000;
    --color-dark-medium: #454d5d;
    --color-dark-soft: #2d2d44;
    --color-gray: #8892a4;
    --color-gray-light: #b0b8c8;
    --color-gray-lighter: #e1e4ea;
    --color-bg: #f8f9fc;
    --color-white: #ffffff;
    --color-text: #3a3a4a;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-shadow: rgba(26, 26, 46, 0.08);
    --color-shadow-hover: rgba(26, 26, 46, 0.15);

    --font-heading: 'TrajanPro', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --header-height-large: 5rem;
    --header-height-small: 3.5rem;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

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

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 16px;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ============================================================================
   HEADINGS - Elegant Trajan Pro Typography
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-top: 2rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* No top margin on first heading inside body content */
#body-wrapper h1:first-child,
#body-wrapper h2:first-child,
#body-wrapper .content-item h1:first-child,
#body-wrapper .content-item h2:first-child,
#body-wrapper .e-content > h1:first-child,
#body-wrapper .e-content > h2:first-child {
    margin-top: 0;
}

h1, .h1 {
    font-size: 2.8rem;
    letter-spacing: 0.06em;
}

h2, .h2 {
    font-size: 2rem;
    letter-spacing: 0.05em;
}

h3, .h3 {
    font-size: 1.6rem;
}

h4, .h4 {
    font-size: 1.3rem;
}

h5, .h5 {
    font-size: 1.1rem;
}

h6, .h6 {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

strong, b {
    font-weight: 700;
    color: var(--color-dark);
}

strong {
    font-size: 1.05em;
}

b {
    font-size: 1.1em;
}

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

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

a:focus {
    outline: none !important;
    box-shadow: none !important;
}

img {
    max-width: 100%;
}

/* ============================================================================
   SELECTION HIGHLIGHT
   ============================================================================ */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

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

#page-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

#page-wrapper > * {
    margin-top: 0 !important;
}

#body-wrapper {
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

#body-wrapper .container {
    padding: 0;
}

/* Add comfortable padding only for regular text content pages */
#body-wrapper .container > p,
#body-wrapper .container > ul,
#body-wrapper .container > ol,
#body-wrapper .container > table,
#body-wrapper .container > blockquote {
    padding-top: 0;
    padding-bottom: 0;
}

/* Top spacing after header for non-fixed header */
#start {
    margin: 0 !important;
    padding: 0 !important;
}

.header-fixed #body-wrapper {
    padding-top: var(--header-height-large);
}

.header-fixed .hero + #start > #body-wrapper {
    padding-top: 0;
}

section.section {
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
}

/* When using grid-xl, the body wrapper section should have no side padding */
section#body-wrapper.section {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.container.grid-xl {
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.body-wrapper.section {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Content padding for body text */
#body-wrapper h1, #body-wrapper h2, #body-wrapper h3, 
#body-wrapper h4, #body-wrapper h5, #body-wrapper h6 {
    padding-left: 40px;
    padding-right: 20px;
}

#body-wrapper p, #body-wrapper ul {
    padding-left: 40px;
    padding-right: 20px;
}

/* Give pages with regular text content (no splash) some vertical breathing room */
#body-wrapper .container > h1:first-child,
#body-wrapper .container > h2:first-child,
#body-wrapper .container > p:first-child {
    padding-top: 2rem;
}

#body-wrapper .container > *:last-child {
    padding-bottom: 2rem;
}

/* Reset padding inside full-width splash/background sections */
.background-paragraph h1, .background-paragraph h2, .background-paragraph h3,
.background-paragraph h4, .background-paragraph h5, .background-paragraph h6,
.background-paragraph p, .background-paragraph ul,
.background-paragraph span,
.background-paragraph-contact-us h1, .background-paragraph-contact-us h2,
.background-paragraph-contact-us h3, .background-paragraph-contact-us h4,
.background-paragraph-contact-us h5, .background-paragraph-contact-us h6,
.background-paragraph-contact-us p, .background-paragraph-contact-us ul,
.background-paragraph-contact-us span {
    padding-left: 0;
    padding-right: 0;
}

/* Hide page title on home page (body has title-center class) */
body.title-center #body-wrapper > .section > .container > h1:first-child,
body.title-h1h2 #body-wrapper > .section > .container > h1:first-child {
    display: none;
}

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

.default-animation {
    transition: var(--transition-smooth);
}

.pulse {
    animation-name: pulse_animation;
    animation-duration: 2000ms;
    transform-origin: 70% 70%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes pulse_animation {
    0% { transform: scale(1); }
    30% { transform: scale(1); }
    40% { transform: scale(1.08); }
    50% { transform: scale(1); }
    60% { transform: scale(1); }
    70% { transform: scale(1.05); }
    80% { transform: scale(1); }
    100% { transform: scale(1); }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ============================================================================
   HEADER - Elegant Glassmorphism
   ============================================================================ */

#header {
    width: 100%;
    height: var(--header-height-large);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

#header a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

#header a:hover,
#header a.active {
    color: var(--color-white);
}

#header .logo svg path {
    fill: var(--color-white);
}

/* Dark header variant */
.header-dark #header:not(.scrolled) {
    background: var(--color-dark);
    color: var(--color-white);
}

.header-dark #header:not(.scrolled) a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header-dark #header:not(.scrolled) a.active {
    color: var(--color-white) !important;
}

.header-dark #header:not(.scrolled) .dropmenu ul ul a {
    color: var(--color-dark) !important;
}

.header-dark #header:not(.scrolled) .logo svg path {
    fill: var(--color-white);
}

.header-dark.header-transparent #header:not(.scrolled) {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-transparent #header:not(.scrolled) {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Scrolled header state */
#header.scrolled {
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.navbar-section {
    height: var(--header-height-large);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

@media (max-width: 840px) {
    .navbar-section {
        margin-right: 2rem;
    }
    .navbar-section.desktop-menu {
        display: none;
    }
}

.logo svg, .logo img {
    height: 48px;
    display: inherit;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Fixed header */
.header-fixed #header {
    position: fixed;
    top: 0;
    z-index: 100;
}

/* Animated scroll shrink */
body.header-fixed.header-animated #header.scrolled {
    height: var(--header-height-small);
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: var(--header-height-small);
}

body.header-fixed.header-animated #header.scrolled .logo svg,
body.header-fixed.header-animated #header.scrolled .logo img {
    height: 34px;
}

body.header-fixed.header-animated #header.scrolled ~ .mobile-menu .button_container {
    top: 0.7rem;
}

/* ============================================================================
   LOGO TEXT
   ============================================================================ */

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.logo-text a {
    color: var(--color-white) !important;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text a:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-status-wrapper {
    white-space: nowrap;
}

/* ============================================================================
   NAVIGATION - Desktop Dropdown Menu
   ============================================================================ */

.dropmenu {
    font-family: var(--font-body);
}

@media (max-width: 840px) {
    .dropmenu {
        display: none;
    }
}

.dropmenu ul {
    white-space: nowrap;
    margin: 0;
    display: flex;
    list-style: none;
}

.dropmenu ul li {
    position: relative;
    margin: 0;
}

.dropmenu ul li a {
    text-decoration: none;
    padding: 7px 30px 7px 20px;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.dropmenu ul li a:hover,
.dropmenu ul li a:focus,
.dropmenu ul li a.active {
    color: var(--color-gold) !important;
}

.dropmenu ul li a::before {
    content: '\f107';
    font-family: 'FontAwesome';
    display: inline-block;
    vertical-align: middle;
    float: right;
    margin-right: -20px;
    opacity: 0.5;
}

.dropmenu ul li a:only-child {
    padding-right: 20px;
}

.dropmenu ul li a:only-child::before {
    content: '';
}

.dropmenu ul li:hover > ul {
    display: block;
    visibility: visible;
}

.dropmenu ul ul li a::before {
    content: '\f105';
}

.dropmenu ul ul {
    position: absolute;
    top: 100%;
    list-style: none;
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--color-gold);
    min-width: 200px;
    padding: 0.5rem 0;
}

.dropmenu ul ul a {
    color: var(--color-dark) !important;
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}

.dropmenu ul ul a:hover {
    color: var(--color-primary) !important;
    background: var(--color-bg);
}

.dropmenu ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
}

.dropmenu > ul > li {
    display: inline-block;
}

/* Animated dropdown */
.dropmenu.animated ul li {
    transition: background 0.4s, color 0.3s;
}

.dropmenu.animated ul li:hover > ul {
    opacity: 1;
    transform: translateY(0);
}

.dropmenu.animated ul ul {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

/* ============================================================================
   HERO SECTION - Dramatic & Professional
   ============================================================================ */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 9rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 0.6) 50%,
        rgba(48, 133, 238, 0.3) 100%
    );
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 3.5rem;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h2 {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero.hero-fullscreen {
    min-height: 100vh;
}

.hero.hero-large {
    min-height: 500px;
}

.hero.hero-medium {
    min-height: 400px;
}

.hero.hero-small {
    min-height: 180px;
}

.hero.hero-tiny {
    min-height: 8rem;
}

.header-fixed .hero {
    background-position: 50% 0;
}

.hero p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero #to-start {
    display: inline-block;
    position: absolute;
    bottom: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--color-white);
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero.text-light h1 {
    color: var(--color-white);
}

.hero.text-light h2 {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 840px) {
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 0.95rem; }
}

/* Hero overlays */
.overlay-light, .overlay-dark, .overlay-light-gradient, .overlay-dark-gradient {
    z-index: 0;
}

.image-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.overlay-light .image-overlay {
    background: rgba(255, 255, 255, 0.4);
}

.overlay-light-gradient .image-overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

.overlay-dark .image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.overlay-dark-gradient .image-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

/* ============================================================================
   BACKGROUND PARAGRAPHS (Splash Sections)
   ============================================================================ */

.background-paragraph {
    background-image: url('../images/Prometheus-Systems-Front-page-splash.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    font-size: 1.25rem;
    padding: 80px 60px;
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 1.9;
    margin-top: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.background-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.88) 0%,
        rgba(26, 26, 46, 0.65) 50%,
        rgba(48, 133, 238, 0.25) 100%
    );
    z-index: -1;
}

.background-paragraph-contact-us {
    background-image: url('../images/Prometheus-Systems-Contact-Us-page-splash.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    font-size: 1.25rem;
    padding: 80px 60px;
    position: relative;
    z-index: 1;
    line-height: 1.9;
    margin-top: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.background-paragraph-contact-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.88) 0%,
        rgba(26, 26, 46, 0.65) 50%,
        rgba(48, 133, 238, 0.25) 100%
    );
    z-index: -1;
}

/* ============================================================================
   MODULAR SECTIONS
   ============================================================================ */

/* Features Section */
.modular-features {
    text-align: center;
    background: var(--color-bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.modular-features.offset-box .frame-box {
    margin: -3rem -1rem 3rem;
    padding: 2rem;
    background: var(--color-white);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-lg);
}

.modular-features .frame-box {
    padding: 3rem 0;
}

.modular-features .frame-box > p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light);
}

.modular-features .column {
    padding: 1.5rem;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}

.modular-features .column:hover {
    transform: translateY(-5px);
    background: var(--color-white);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.modular-features .column:hover .feature-icon {
    color: var(--color-gray);
}

.modular-features .column:hover .feature-icon h6 {
    color: var(--color-primary);
}

.modular-features .column:hover .feature-content {
    color: var(--color-dark-medium);
}

.modular-features .feature-icon {
    font-size: 130px;
    height: 100px;
    color: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 1rem 0;
    transition: var(--transition-smooth);
}

.modular-features .feature-icon i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

.modular-features .column:hover .feature-icon i {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

.modular-features .feature-icon h6 {
    background: var(--color-white);
    line-height: 1;
    z-index: 1;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
    display: block;
    color: var(--color-dark-medium);
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.modular-features .feature-content {
    color: var(--color-gray);
    line-height: 1.7;
}

/* Small features variant */
.modular-features.small .columns {
    margin-top: -1rem;
}

.modular-features.small .column:hover .feature-icon i {
    color: var(--color-primary);
}

.modular-features.small .feature-icon {
    display: block;
    justify-content: left;
}

.modular-features.small .feature-icon i {
    position: relative;
    display: inherit;
    font-size: 70px;
    margin: 0 auto 1rem;
    transform: none;
    left: auto;
    top: auto;
    color: var(--color-gray);
    transition: var(--transition-smooth);
}

.modular-features.small .feature-icon h6 {
    text-transform: none;
}

/* Hero modular tweak */
.modular-hero #to-start {
    bottom: 3.5rem;
}

/* Text modular section */
.modular-text {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: var(--color-bg);
}

.modular-text .columns.left {
    flex-direction: row-reverse;
}

/* ============================================================================
   FOOTER - Elegant Dark Footer
   ============================================================================ */

body.sticky-footer {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.sticky-footer #page-wrapper {
    flex: 1 0 auto;
}

#footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-top: 3px solid var(--color-gold);
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-accent));
}

#footer a {
    color: var(--color-gold);
    transition: var(--transition-fast);
}

#footer a:hover {
    color: var(--color-gold-light);
}

#footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

/* ============================================================================
   MOBILE MENU - Professional Overlay
   ============================================================================ */

.mobile-container {
    position: absolute;
    top: 40%;
    left: 0;
    margin: 0 auto;
    z-index: 2;
}

.mobile-logo svg,
.mobile-logo img {
    height: 42px;
    margin-top: 0.7rem;
    margin-left: 1.4rem;
}

.mobile-logo svg path {
    fill: var(--color-white);
}

/* Hamburger Menu */
.mobile-menu {
    display: none;
    top: 0;
    right: 0;
    z-index: 101;
}

.header-fixed .mobile-menu {
    position: fixed;
}

@media (max-width: 840px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu .button_container {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.25s ease, top 0.5s ease;
}

.mobile-menu .button_container:hover {
    opacity: 0.7;
}

.mobile-menu .button_container.active {
    position: fixed;
}

.mobile-menu .button_container.active .top {
    transform: translateY(8px) translateX(0) rotate(45deg);
    background: var(--color-white);
}

.mobile-menu .button_container.active .middle {
    opacity: 0;
    background: var(--color-white);
}

.mobile-menu .button_container.active .bottom {
    transform: translateY(-8px) translateX(0) rotate(-45deg);
    background: var(--color-white);
}

.mobile-menu .button_container span {
    background: var(--color-accent) !important;
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    border-radius: 2px;
}

.mobile-menu .button_container span:nth-of-type(2) {
    top: 8px;
}

.mobile-menu .button_container span:nth-of-type(3) {
    top: 16px;
}

.mobile-menu .button_container:hover span,
.mobile-menu .button_container.active span {
    background: var(--color-accent-hover) !important;
}

/* Overlay */
.overlay {
    position: fixed;
    background: var(--color-dark);
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    z-index: 99;
}

.overlay.open {
    opacity: 0.97;
    visibility: visible;
    height: 100%;
}

.overlay nav {
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.overlay-menu {
    height: calc(100% - 90px);
    overflow-y: scroll;
    padding-top: 60px;
}

.overlay-menu > .tree {
    text-align: left;
}

.overlay-menu ul.tree li a {
    color: var(--color-accent) !important;
    font-size: 18px !important;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
}

.overlay-menu ul.tree li a:hover {
    color: var(--color-accent-hover) !important;
}

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

.mobile-nav-open {
    overflow-y: hidden;
}

/* Tree Menu */
.treemenu.treemenu-root {
    margin: 1rem;
}

.treemenu li {
    list-style: none;
    margin: 0 0 1px;
    padding: 5px 0;
    line-height: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.treemenu li a {
    display: block;
    margin-left: 1.2rem;
    font-size: 1rem;
}

.treemenu li a:hover,
.treemenu li a:focus,
.treemenu li a.active {
    color: var(--color-primary-light) !important;
    text-decoration: none;
}

.treemenu ul {
    margin: 0 0 0 1rem;
}

.treemenu .toggler {
    cursor: pointer;
    vertical-align: top;
    font-size: 1.1rem;
    line-height: 1rem;
    padding-left: 5px;
    float: left;
    color: var(--color-gold);
}

.treemenu .toggler::before {
    display: inline-block;
    margin-right: 2pt;
}

.treemenu li.tree-empty > .toggler {
    opacity: 0.3;
    cursor: default;
}

.treemenu li.tree-empty > .toggler::before {
    content: "\2022";
}

.treemenu li.tree-closed > .toggler::before {
    content: "+";
}

.treemenu li.tree-opened > .toggler::before {
    content: "\2212";
}

/* ============================================================================
   BUTTONS - Refined & Professional
   ============================================================================ */

.btn {
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary,
.btn.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 8px 25px rgba(48, 133, 238, 0.3);
}

/* ============================================================================
   CARDS - Elegant Shadow Cards
   ============================================================================ */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: var(--transition-smooth);
    background: var(--color-white);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--color-shadow-hover);
}

.card .card-image {
    overflow: hidden;
}

.card .card-image img {
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-header {
    padding: 1.2rem 1.5rem 0.5rem;
}

.card .card-body {
    padding: 0.5rem 1.5rem;
    color: var(--color-text-light);
}

.card .card-footer {
    padding: 0.8rem 1.5rem 1.2rem;
    text-align: right;
}

/* ============================================================================
   FORMS - Clean & Professional
   ============================================================================ */

.form-input {
    border-radius: var(--border-radius);
    border: 2px solid var(--color-gray-lighter);
    padding: 0.6rem 1rem;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(48, 133, 238, 0.15);
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--color-gray-lighter);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(48, 133, 238, 0.15);
}

form .button-wrapper {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

form span.required {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
}

form .form-input[type=range] {
    appearance: slider-horizontal;
}

form .form-input[type=range]:focus {
    box-shadow: none;
    border: none;
}

form .form-group:not(.form-field-toggleable) .checkboxes {
    display: inherit;
}

form .form-group:not(.form-field-toggleable) .checkboxes label {
    display: inherit;
    margin: inherit;
}

form .form-group:not(.form-field-toggleable) .checkboxes label::before {
    display: none;
}

#grav-login > form {
    margin: 2rem auto 0;
    max-width: 400px;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px var(--color-shadow);
}

#grav-login .form-label {
    display: none;
}

#grav-login .form-data {
    margin: 1rem 0;
}

#grav-login .form-input {
    text-align: center;
}

#grav-login .button-wrapper {
    text-align: right;
}

#grav-login .button-wrapper .form-data.rememberme {
    margin: 0;
    float: left;
}

/* ============================================================================
   BLOG STYLES
   ============================================================================ */

.blog-listing .bricklayer-column {
    padding-left: 0;
    padding-right: 25px;
}

.blog-listing .card {
    margin-bottom: 25px;
}

.blog-listing .card-footer {
    text-align: right;
}

.blog-listing .blog-date {
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
}

.content-title {
    margin-bottom: 2rem;
}

.content-title h2 {
    margin-bottom: 0.5rem;
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

ul.pagination {
    justify-content: center;
}

.prev-next {
    margin-top: 4rem;
}

/* Extra columns spacing */
.extra-spacing:not(.col-12),
:not(.col12) > .e-content {
    padding-right: 1rem;
}

@media (max-width: 840px) {
    .extra-spacing:not(.col-12),
    :not(.col12) > .e-content {
        padding-right: 0;
    }
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

#breadcrumbs {
    padding-left: 0;
    display: flex;
    align-items: center;
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#breadcrumbs i {
    display: none;
}

#breadcrumbs span,
#breadcrumbs a {
    padding: 0 0.5rem;
}

#breadcrumbs span:first-child,
#breadcrumbs a:first-child {
    padding-left: 0;
}

#breadcrumbs span:not(:first-child)::before,
#breadcrumbs a:not(:first-child)::before {
    color: var(--color-gray-lighter);
    content: "/";
    padding-right: 1rem;
}

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

#sidebar ul.related-pages {
    box-shadow: none;
    padding: 0;
    z-index: 1;
}

#sidebar ul.related-pages li {
    border-bottom: 1px solid var(--color-border);
}

#sidebar ul.related-pages li:last-child {
    border-bottom: 0;
}

#sidebar ul.archives {
    list-style: none;
    margin-left: 0;
}

#sidebar ul.archives .label {
    vertical-align: text-top;
}

.sidebar-content {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--border-radius);
}

.sidebar-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--color-dark);
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
}

/* ============================================================================
   CODE BLOCKS
   ============================================================================ */

pre code, pre.xdebug-var-dump {
    background: var(--color-bg);
    display: block;
    padding: 1.2rem !important;
    line-height: 1.6;
    color: inherit;
    border-radius: var(--border-radius);
    overflow-x: auto;
    border: 1px solid var(--color-border);
}

pre[class*="language-"] code {
    border-radius: inherit;
    padding: 0 !important;
    overflow-x: initial;
}

pre code:not(.hljs):not([class*="language-"]) {
    background: var(--color-bg);
}

/* ============================================================================
   TABLES (Div-based)
   ============================================================================ */

.table > table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}

.table-div-container {
    display: grid;
    grid-template-columns: auto auto;
}

.table-div-row {
    display: flex;
    flex-direction: row;
}

.table-div-cell {
    border: 0;
    padding: 0;
}

.table-div-cell > img {
    padding: 20px;
    max-width: 25vw;
    height: auto;
    border-radius: var(--border-radius);
}

/* ============================================================================
   TECHNICAL TERMS - Tooltip
   ============================================================================ */

.technical-term {
    cursor: help;
    border-bottom: 1px dotted var(--color-primary);
    position: relative;
    color: var(--color-primary-dark);
}

.technical-term::after {
    content: attr(data-definition);
    position: absolute;
    z-index: 10;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    white-space: normal;
    width: auto;
    min-width: 200px;
    max-width: 350px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.5;
}

.technical-term:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ============================================================================
   LISTS
   ============================================================================ */

ul, ol {
    margin-left: 1.5rem;
}

ul ul, ol ol, ul ol, ol ul {
    margin-left: 1.5rem;
}

ul {
    list-style: disc outside;
}

ol {
    list-style: decimal outside;
}

/* ============================================================================
   NOTICES
   ============================================================================ */

.notices {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.notices p {
    margin: 1rem 0;
}

/* ============================================================================
   TEXT COLORS
   ============================================================================ */

.text-light {
    color: rgba(255, 255, 255, 0.85);
}

.text-light h1, .text-light h2, .text-light h3,
.text-light h4, .text-light h5, .text-light h6 {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================================================
   ERROR PAGE
   ============================================================================ */

#error {
    text-align: center;
    position: relative;
    margin-top: 5rem;
    padding: 3rem;
}

#error .icon {
    font-size: 50px;
    color: var(--color-gray-light);
}

#error h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   MESSAGES
   ============================================================================ */

#messages {
    margin-bottom: 1rem;
}

#messages .icon {
    font-size: 1rem;
}

/* ============================================================================
   ICON TWEAKS
   ============================================================================ */

i.fa.fa-heart.pulse,
i.fa.fa-heart-o.pulse {
    color: #920;
}

/* ============================================================================
   FONT WEIGHTS
   ============================================================================ */

.heavy {
    font-weight: 700;
}

.light {
    font-weight: 200;
}

/* ============================================================================
   TITLE STYLES
   ============================================================================ */

.title-center h1,
.title-center h2 {
    text-align: center;
}

.title-h1h2 h1 {
    font-weight: 100;
    margin-bottom: 0;
    line-height: 1.1;
}

.title-h1h2 h1 strong,
.title-h1h2 h1 bold {
    font-weight: 400;
}

.title-h1h2 h1 + h2 {
    line-height: 1.1;
    margin-top: 0;
}

.title-h1h2 h1 + h2,
.title-center h1 + h2 {
    margin-bottom: 50px;
    font-weight: 700;
}

/* ============================================================================
   ALIGNMENT HELPERS
   ============================================================================ */

.right-align {
    display: block;
    text-align: right;
}

/* ============================================================================
   SEARCH & EXTENSIONS
   ============================================================================ */

.search-input,
[data-grav-field="array"] input,
[data-grav-field="array"] textarea {
    border-radius: var(--border-radius);
    border: 2px solid var(--color-gray-lighter);
    padding: 0.5rem 1rem;
    width: 100%;
    font-family: var(--font-body);
}

.search-input:focus,
[data-grav-field="array"] input:focus,
[data-grav-field="array"] textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(48, 133, 238, 0.15);
    outline: none;
}

/* ============================================================================
   GALLERY LIGHTBOX
   ============================================================================ */

.lightbox-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lightbox-gallery .lightbox-gallery__columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.lightbox-gallery .lightbox-gallery__column {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.lightbox-gallery img {
    display: block;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lightbox-gallery img:hover {
    filter: brightness(85%);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media only screen and (min-width: 600px) {
    .lightbox-gallery .lightbox-gallery__column {
        width: calc(100% / 3);
    }
}

@media only screen and (min-width: 1000px) {
    .lightbox-gallery .lightbox-gallery__column {
        width: 25%;
    }
}

.lightbox-gallery .hidden {
    display: none;
}

/* ============================================================================
   SCROLL TO TOP BUTTON (Elegant)
   ============================================================================ */

#to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-dark);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    z-index: 50;
    opacity: 0.8;
}

#to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================================================
   ELEGANT DIVIDERS & DECORATIONS
   ============================================================================ */

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-lighter), transparent);
    margin: 2rem 0;
}

/* Gold accent line under section headings */
.section-heading {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    border-radius: 2px;
}

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

@media (max-width: 840px) {
    :root {
        --header-height-large: 4rem;
        --header-height-small: 3rem;
    }

    h1, .h1 { font-size: 2.2rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.3rem; }

    .background-paragraph,
    .background-paragraph-contact-us {
        padding: 30px 25px;
        font-size: 1.1rem;
    }

    .background-paragraph h1, .background-paragraph h2, .background-paragraph h3,
    .background-paragraph h4, .background-paragraph h5, .background-paragraph h6,
    .background-paragraph p, .background-paragraph ul, .background-paragraph span,
    .background-paragraph-contact-us h1, .background-paragraph-contact-us h2,
    .background-paragraph-contact-us h3, .background-paragraph-contact-us h4,
    .background-paragraph-contact-us h5, .background-paragraph-contact-us h6,
    .background-paragraph-contact-us p, .background-paragraph-contact-us ul,
    .background-paragraph-contact-us span {
        padding-left: 0;
        padding-right: 0;
    }

    #body-wrapper h1, #body-wrapper h2, #body-wrapper h3,
    #body-wrapper h4, #body-wrapper h5, #body-wrapper h6 {
        padding-left: 20px;
    }

    #body-wrapper p, #body-wrapper ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    h1, .h1 { font-size: 1.8rem; }
    h2, .h2 { font-size: 1.4rem; }

    .background-paragraph,
    .background-paragraph-contact-us {
        padding: 20px 15px;
        font-size: 1rem;
    }

    .background-paragraph h1, .background-paragraph h2, .background-paragraph h3,
    .background-paragraph h4, .background-paragraph h5, .background-paragraph h6,
    .background-paragraph p, .background-paragraph ul, .background-paragraph span,
    .background-paragraph-contact-us h1, .background-paragraph-contact-us h2,
    .background-paragraph-contact-us h3, .background-paragraph-contact-us h4,
    .background-paragraph-contact-us h5, .background-paragraph-contact-us h6,
    .background-paragraph-contact-us p, .background-paragraph-contact-us ul,
    .background-paragraph-contact-us span {
        padding-left: 0;
        padding-right: 0;
    }

    #body-wrapper h1, #body-wrapper h2, #body-wrapper h3,
    #body-wrapper h4, #body-wrapper h5, #body-wrapper h6 {
        padding-left: 15px;
    }

    #body-wrapper p, #body-wrapper ul {
        padding-left: 15px;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    #header, #footer, .mobile-menu, .mobile-container,
    #to-top, #to-start {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
