/* ===================================
   DIG Marketing Global Assets
   Midnight Opulence Design System
   =================================== */

/* Root Variables */
:root {
    --midnight-navy: #1a1a2e;
    --abyssal-blue: #0f3460;
    --golden-opulence: #efc07b;
    --platinum-silver: #bdc3c7;
    --bone-white: #f9f8f3;

    --transition-fast: 0.2s ease;
    --transition-standard: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-navy);
    color: var(--bone-white);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

p {
    margin-bottom: 1rem;
}

a {
    color: var(--golden-opulence);
    text-decoration: none;
    transition: all var(--transition-standard);
}

a:hover {
    opacity: 0.8;
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(239, 192, 123, 0.1);
    transition: all var(--transition-standard);
    padding: 0;
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.9);
    border-bottom-color: rgba(239, 192, 123, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-standard);
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--platinum-silver);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-standard);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden-opulence);
    transition: width var(--transition-standard);
}

.nav-link:hover,
.nav-link.active {
    color: var(--golden-opulence);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    background: transparent;
    border: 2px solid var(--golden-opulence);
    color: var(--golden-opulence);
    padding: 0.75rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-standard);
    white-space: nowrap;
}

.header-cta:hover {
    background: rgba(239, 192, 123, 0.1);
    transform: translateY(-2px);
}

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

.site-footer {
    background: rgba(15, 52, 96, 0.3);
    border-top: 1px solid rgba(239, 192, 123, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--golden-opulence);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: var(--platinum-silver);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: var(--platinum-silver);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-standard);
}

.footer-section a:hover {
    color: var(--golden-opulence);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(239, 192, 123, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--platinum-silver);
    font-size: 0.85rem;
}

/* ===================================
   Buttons & CTAs
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-standard);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--golden-opulence), #f4d7a1);
    color: var(--midnight-navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(239, 192, 123, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--golden-opulence);
    color: var(--golden-opulence);
}

.btn-secondary:hover {
    background: rgba(239, 192, 123, 0.1);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: rgba(239, 192, 123, 0.1);
    color: var(--golden-opulence);
    border: 1px solid rgba(239, 192, 123, 0.2);
}

.btn-tertiary:hover {
    background: rgba(239, 192, 123, 0.2);
    border-color: var(--golden-opulence);
}

/* ===================================
   Form Elements
   =================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 52, 96, 0.4);
    border: 1px solid rgba(189, 195, 199, 0.2);
    color: var(--bone-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all var(--transition-standard);
}

input::placeholder,
textarea::placeholder {
    color: rgba(189, 195, 199, 0.5);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--golden-opulence);
    background: rgba(15, 52, 96, 0.6);
    box-shadow: 0 0 20px rgba(239, 192, 123, 0.1);
}

/* ===================================
   Cards & Containers
   =================================== */

.card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.5), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(189, 195, 199, 0.1);
    padding: 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-standard);
}

.card:hover {
    border-color: rgba(239, 192, 123, 0.3);
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8), rgba(26, 26, 46, 1));
    transform: translateY(-5px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

section {
    position: relative;
}

.section-padding {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--platinum-silver);
    line-height: 1.7;
}

/* ===================================
   Grid & Layout
   =================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-golden { color: var(--golden-opulence); }
.text-platinum { color: var(--platinum-silver); }
.text-white { color: var(--bone-white); }

.bg-navy { background-color: var(--midnight-navy); }
.bg-abyssal { background-color: var(--abyssal-blue); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.no-scroll { overflow: hidden; }

/* ===================================
   Animations
   =================================== */

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

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

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

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

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

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        order: 3;
        flex-basis: 100%;
        gap: 1.5rem;
        justify-content: flex-start;
    }

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

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo svg {
        height: 32px;
    }

    .nav-menu {
        flex-basis: auto;
        gap: 1rem;
        flex-wrap: wrap;
        order: 0;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .header-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .section-padding {
        padding: 4rem 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    .header-container {
        padding: 0.75rem;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

@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;
    }
}

@media (prefers-color-scheme: dark) {
    /* Already dark mode by default */
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--golden-opulence);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    header, footer {
        display: none;
    }
}
