/* ============================================
   BAHSIA Technologies - Corporate Website
   霸下科技 - 承天載物 龍騰四海
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Bronze & Gold Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    --bg-light: #f8f7f4;
    
    --gold-primary: #c9a227;
    --gold-light: #e8d5a3;
    --gold-bright: #ffd700;
    --gold-dark: #8b7355;
    --gold-muted: #6b5a3a;
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-muted: #6a6a7a;
    --text-dark: #1a1a1a;
    --text-light: #4a4a5a;
    
    --accent-blue: #3a7bd5;
    --accent-teal: #00b09b;
    
    --border-color: rgba(201, 162, 39, 0.15);
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-display: 'Playfair Display', 'Noto Serif TC', serif;
    --font-heading: 'Noto Serif TC', 'Noto Sans TC', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(60px, 8vw, 100px);
    --container-max: 1280px;
    
    /* Animation */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Light page background */
body.light-page {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.98), rgba(10, 10, 15, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.4s var(--transition-smooth), backdrop-filter 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), padding 0.4s var(--transition-smooth);
}

body.light-page .nav {
    background: linear-gradient(to bottom, rgba(248, 247, 244, 0.98), rgba(248, 247, 244, 0.95));
    border-bottom: 1px solid var(--border-light);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.1em;
}

body.light-page .nav-logo-text {
    color: var(--gold-dark);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
    background: rgba(201, 162, 39, 0.08);
}

body.light-page .nav-link {
    color: var(--text-light);
}

body.light-page .nav-link:hover,
body.light-page .nav-link.active {
    color: var(--gold-dark);
    background: rgba(139, 115, 85, 0.08);
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.light-page .nav-dropdown {
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown a:hover {
    color: var(--gold-primary);
    background: rgba(201, 162, 39, 0.1);
}

body.light-page .nav-dropdown a:hover {
    color: var(--gold-dark);
    background: rgba(139, 115, 85, 0.08);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
    transition: background 0.3s ease, transform 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    padding: 80px 30px 30px;
    transition: right 0.4s var(--transition-smooth);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--gold-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.mobile-nav-sub {
    display: none;
    padding: 0 0 15px 15px;
}

.mobile-nav-sub a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 40px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: url('../public/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(10, 10, 15, 0.65) 0%, rgba(10, 10, 15, 0.45) 50%, rgba(10, 10, 15, 0.75) 100%),
        radial-gradient(ellipse at 20% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(58, 123, 213, 0.05) 0%, transparent 50%);
    animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L45 20 L45 40 L30 55 L15 40 L15 20 Z' fill='none' stroke='%23c9a227' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 28s; }
.particle:nth-child(2) { left: 25%; animation-delay: 3s; animation-duration: 24s; }
.particle:nth-child(3) { left: 40%; animation-delay: 5s; animation-duration: 30s; }
.particle:nth-child(4) { left: 55%; animation-delay: 2s; animation-duration: 26s; }
.particle:nth-child(5) { left: 70%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(6) { left: 85%; animation-delay: 1s; animation-duration: 28s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.4; transform: translateY(90vh) scale(1); }
    90% { opacity: 0.4; transform: translateY(10vh) scale(1); }
    100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 35px;
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-cn {
    display: block;
    font-size: 1.1em;
    letter-spacing: 0.25em;
    margin-bottom: 5px;
}

.hero-tagline {
    display: block;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 45px;
    line-height: 1.9;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: background 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: 0 4px 25px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(201, 162, 39, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.btn-secondary:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold-primary);
}

body.light-page .btn-secondary {
    color: var(--gold-dark);
    border-color: rgba(139, 115, 85, 0.4);
}

body.light-page .btn-secondary:hover {
    background: rgba(139, 115, 85, 0.08);
    border-color: var(--gold-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    animation: bounce 2.5s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, var(--gold-primary), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: 160px 40px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.05) 0%, transparent 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: var(--gold-primary);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

body.light-page .page-title {
    color: var(--text-dark);
}

body.light-page .page-subtitle {
    color: var(--text-light);
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--section-padding) 40px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

body.light-page .section-title {
    color: var(--text-dark);
}

body.light-page .section-subtitle {
    color: var(--text-light);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.light-page .content-card {
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-page .content-card:hover {
    border-color: rgba(139, 115, 85, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.content-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

body.light-page .content-card-icon {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.12), rgba(139, 115, 85, 0.04));
}

.content-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

body.light-page .content-card-title {
    color: var(--text-dark);
}

.content-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

body.light-page .content-card-text {
    color: var(--text-light);
}

.content-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold-primary);
    transition: gap 0.3s ease;
}

.content-card-link:hover {
    gap: 12px;
}

/* ============================================
   Sidebar Layout
   ============================================ */
.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-primary);
}

body.light-page .sidebar-title {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: block;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(201, 162, 39, 0.08);
}

.sidebar-link.active {
    color: var(--gold-primary);
    background: rgba(201, 162, 39, 0.12);
    font-weight: 500;
}

body.light-page .sidebar-link:hover {
    color: var(--text-dark);
    background: rgba(139, 115, 85, 0.08);
}

body.light-page .sidebar-link.active {
    color: var(--gold-dark);
    background: rgba(139, 115, 85, 0.1);
}

.sidebar-sub {
    padding-left: 20px;
}

.sidebar-sub .sidebar-link {
    font-size: 0.9rem;
    padding: 10px 18px;
}

.main-content {
    min-height: 60vh;
}

.content-block {
    margin-bottom: 50px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
}

body.light-page .content-block h2 {
    color: var(--gold-dark);
}

.content-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

body.light-page .content-block h3 {
    color: var(--text-dark);
}

.content-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 15px;
}

body.light-page .content-block p {
    color: var(--text-light);
}

.content-block ul {
    list-style: none;
    margin: 15px 0;
}

.content-block ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.content-block ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 0.7rem;
}

body.light-page .content-block ul li {
    color: var(--text-light);
}

body.light-page .content-block ul li::before {
    color: var(--gold-dark);
}

/* ============================================
   Service Cards
   ============================================ */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.4);
}

body.light-page .service-card {
    background: white;
    border: 1px solid var(--border-light);
}

body.light-page .service-card:hover {
    border-color: rgba(139, 115, 85, 0.3);
}

.service-card-image {
    height: 180px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card-content {
    padding: 25px;
}

.service-card-tag {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

body.light-page .service-card-tag {
    background: rgba(139, 115, 85, 0.1);
    color: var(--gold-dark);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

body.light-page .service-card-title {
    color: var(--text-dark);
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

body.light-page .service-card-text {
    color: var(--text-light);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold-primary);
}

.service-card-link:hover {
    gap: 12px;
}

/* ============================================
   Process Steps
   ============================================ */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-step {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 90px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-primary), rgba(201, 162, 39, 0.2));
}

body.light-page .process-step:not(:last-child)::after {
    background: linear-gradient(to bottom, var(--gold-dark), rgba(139, 115, 85, 0.2));
}

.process-step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-step-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

body.light-page .process-step-content h4 {
    color: var(--text-dark);
}

.process-step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

body.light-page .process-step-content p {
    color: var(--text-light);
}

/* ============================================
   Partner Grid
   ============================================ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.partner-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.partner-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

body.light-page .partner-item {
    background: white;
    border: 1px solid var(--border-light);
}

body.light-page .partner-item:hover {
    border-color: var(--gold-dark);
}

.partner-item img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   News List
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
    border-color: rgba(201, 162, 39, 0.4);
    transform: translateX(5px);
}

body.light-page .news-item {
    background: white;
    border: 1px solid var(--border-light);
}

body.light-page .news-item:hover {
    border-color: rgba(139, 115, 85, 0.3);
}

.news-item-date {
    font-size: 0.85rem;
    color: var(--gold-primary);
    white-space: nowrap;
}

body.light-page .news-item-date {
    color: var(--gold-dark);
}

.news-item-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-content h3 {
    color: var(--gold-primary);
}

body.light-page .news-item-content h3 {
    color: var(--text-dark);
}

body.light-page .news-item:hover .news-item-content h3 {
    color: var(--gold-dark);
}

.news-item-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

body.light-page .news-item-content p {
    color: var(--text-light);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

body.light-page .contact-info h3 {
    color: var(--gold-dark);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

body.light-page .contact-info p {
    color: var(--text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

body.light-page .contact-icon {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.12), rgba(139, 115, 85, 0.04));
}

.contact-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

body.light-page .contact-text strong {
    color: var(--text-dark);
}

.contact-text span,
.contact-text a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-text a {
    color: var(--gold-primary);
}

body.light-page .contact-text a {
    color: var(--gold-dark);
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

body.light-page .contact-form {
    background: white;
    border: 1px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

body.light-page .form-label {
    color: var(--text-light);
}

.form-label .required {
    color: var(--gold-primary);
}

body.light-page .form-label .required {
    color: var(--gold-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-page .form-input,
body.light-page .form-textarea,
body.light-page .form-select {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

body.light-page .form-input:focus,
body.light-page .form-textarea:focus,
body.light-page .form-select:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-radio-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
}

.form-radio span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

body.light-page .form-radio span {
    color: var(--text-light);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-btn {
    flex: 1;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.form-btn-submit {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    border: none;
}

.form-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.35);
}

.form-btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.form-btn-reset:hover {
    border-color: var(--text-muted);
}

body.light-page .form-btn-reset {
    border-color: var(--border-light);
    color: var(--text-light);
}

body.light-page .form-btn-reset:hover {
    border-color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 70px 40px 30px;
}

body.light-page .footer {
    background: #f0eeeb;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 280px;
}

body.light-page .footer-brand p {
    color: var(--text-light);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
}

body.light-page .footer-title {
    color: var(--gold-dark);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

body.light-page .footer-links a:hover {
    color: var(--gold-dark);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

body.light-page .footer-bottom {
    border-top-color: var(--border-light);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.light-page .footer-copyright {
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 0.9rem;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

body.light-page .footer-social a {
    background: rgba(139, 115, 85, 0.1);
    color: var(--gold-dark);
}

body.light-page .footer-social a:hover {
    background: var(--gold-dark);
    color: white;
}

/* ============================================
   Sidebar Contact
   ============================================ */
.sidebar-contact {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

body.light-page .sidebar-contact {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.08), rgba(139, 115, 85, 0.03));
    border: 1px solid rgba(139, 115, 85, 0.15);
}

.sidebar-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

body.light-page .sidebar-contact p {
    color: var(--text-light);
}

.sidebar-contact a {
    display: inline-block;
    background: var(--gold-primary);
    color: var(--bg-primary);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-contact a:hover {
    background: var(--gold-light);
}

body.light-page .sidebar-contact a {
    background: var(--gold-dark);
    color: white;
}

body.light-page .sidebar-contact a:hover {
    background: var(--gold-muted);
}

/* ============================================
   SVG Icon System
   ============================================ */
.svg-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--gold-primary);
}

.svg-icon-lg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: var(--gold-primary);
}

.svg-inline-icon {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    stroke: var(--gold-primary);
}

body.light-page .svg-icon,
body.light-page .svg-icon-lg,
body.light-page .svg-inline-icon {
    stroke: var(--gold-dark);
}

.content-card-icon .svg-icon,
.content-card-icon .svg-icon-lg,
.content-card-icon .svg-inline-icon {
    stroke: var(--gold-primary);
}

/* ============================================
   Utility Classes (replace inline styles)
   ============================================ */
.section-alt {
    background: var(--bg-tertiary);
}

.mt-2 {
    margin-top: 2rem;
}

/* Grid modifiers */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Partner logo placeholder */
.partner-logo-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.partner-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Step / advantage numbers */
.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.step-number-lg {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-title-sm {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact method cards */
.contact-method-card {
    text-align: center;
    padding: 2rem;
}

.contact-method-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-circle .svg-icon,
.contact-method-circle svg {
    stroke: white;
    width: 28px;
    height: 28px;
    fill: none;
    stroke-width: 1.5;
}

.contact-method-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-method-note {
    font-size: 0.85rem;
}

/* Form */
.form-container {
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-required {
    color: #c00;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: inherit;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--gold-primary);
    outline: none;
}

body.light-page .form-input {
    background: white;
    border-color: var(--border-light);
}

.form-textarea {
    resize: vertical;
}

.form-full-row {
    margin-bottom: 1rem;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox {
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.link-gold {
    color: var(--gold-dark);
}

.form-button-row {
    display: flex;
    gap: 1rem;
}

.form-button-flex {
    flex: 1;
}

.btn-mt {
    margin-top: 1rem;
}

/* Section modifiers */
.section-alt-bg {
    background: var(--bg-secondary);
}

.mt-section {
    text-align: center;
    margin-top: 50px;
}

.mt-section-sm {
    text-align: center;
    margin-top: 40px;
}

.content-center-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact method icon */
.contact-method-icon {
    margin-bottom: 1rem;
}

/* Partners CTA */
.partners-cta {
    margin-top: 2rem;
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Flow link */
.flow-link-text {
    color: var(--gold-dark);
    margin-top: 8px;
}

/* Hero subtitle text */
.hero-subtitle-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .sidebar-layout {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--border-color);
    }
    
    body.light-page .sidebar {
        border-bottom-color: var(--border-light);
    }
    
    .sidebar-title {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .sidebar-link {
        white-space: nowrap;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
    }
    
    body.light-page .sidebar-link {
        background: white;
        border: 1px solid var(--border-light);
    }
    
    .sidebar-sub {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .page-header {
        padding: 130px 20px 60px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 20px;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Web Design Guidelines Additions
   ============================================ */

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--gold-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility: Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

body.light-page a:focus-visible,
body.light-page button:focus-visible,
body.light-page input:focus-visible,
body.light-page select:focus-visible,
body.light-page textarea:focus-visible {
    outline-color: var(--gold-dark);
}

/* Focus within for compound controls */
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-item:focus-within > .nav-link {
    color: var(--gold-primary);
    background: rgba(201, 162, 39, 0.08);
}

body.light-page .nav-item:focus-within > .nav-link {
    color: var(--gold-dark);
    background: rgba(139, 115, 85, 0.08);
}

/* Typography: text-wrap balance for headings */
.hero-title,
.section-title,
.page-title,
.sidebar-title,
.footer-title,
.content-block h2,
.main-content h2,
.main-content h3 {
    text-wrap: balance;
}

/* Heading scroll-margin for anchor navigation */
[id] {
    scroll-margin-top: 100px;
}

/* Touch: manipulation for interactive elements */
a,
button,
.nav-link,
.mobile-nav-link,
.sidebar-link,
.btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Color scheme for dark mode pages */
body:not(.light-page) {
    color-scheme: dark;
}

/* Form: tabular-nums for numeric fields */
input[type="tel"],
input[type="number"] {
    font-variant-numeric: tabular-nums;
}

/* Mobile menu button reset */
.mobile-menu-btn {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
}

.mobile-menu-close {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* Mobile menu: overscroll containment */
.mobile-menu {
    overscroll-behavior: contain;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .particle {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}
