/* ============================================================
   TitanResolve — Global Stylesheet (Light Mode)
   Clean, professional enterprise aesthetic
   Font: Inter
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TOKENS
============================================================ */
:root {
    --magenta: #B5135B;
    --magenta-hover: #8f0f49;
    --magenta-dim: #d4185e;
    --magenta-light: rgba(181, 19, 91, 0.12);
    --magenta-glow: rgba(181, 19, 91, 0.15);
    --magenta-glow-strong: rgba(181, 19, 91, 0.28);

    --bg-page: #f7f8fc;
    --bg-surface: #ffffff;
    --bg-surface-2: #f0f2f8;
    --bg-overlay: #f0f2f8;
    --bg-topbar: rgba(255, 255, 255, 0.92);

    --container-bg: #ffffff;
    --container-border: rgba(0, 0, 0, 0.08);

    --text-color: #0f1117;
    --text-muted: #5a5f72;
    --text-faint: #9098b1;

    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.14);
    --hover-bg: rgba(0, 0, 0, 0.04);
    --divider: rgba(0, 0, 0, 0.07);

    --blur-md: blur(20px) saturate(1.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --ease: 0.2s ease;

    /* Legacy aliases — all existing page CSS uses these */
    --primary-color: var(--magenta);
    --link-hover: var(--magenta-hover);
    --background-color: var(--bg-page);
    --accent-color: var(--text-muted);
    --footer-bg: var(--bg-surface);
    --transition-speed: var(--ease);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================================================
   BODY
============================================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.1px;
    min-height: 100vh;
}

/* ============================================================
   HEADER — sticky, crisp white with subtle shadow
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-topbar);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--container-border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.7rem;
}

.site-logo {
    width: 220px;
    max-width: 68vw;
    height: auto;
    display: block;
}

/* ============================================================
   GRADIENT LINES
============================================================ */
.gradient-line {
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%, rgba(181, 19, 91, 0.25) 25%,
            rgba(181, 19, 91, 0.55) 50%, rgba(181, 19, 91, 0.25) 75%, transparent 100%);
}

.top-line {
    margin-bottom: 0.25rem;
}

.bottom-line {
    margin-top: 0.25rem;
}

/* ============================================================
   NAVIGATION
============================================================ */
.navbar {
    text-align: center;
    padding: 0.1rem 0;
    position: relative;
}

.navbar .nav-menu {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.navbar .nav-menu li a {
    display: block;
    padding: 0.35rem 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--ease);
}

.navbar .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.9rem;
    right: 0.9rem;
    height: 1.5px;
    background: var(--magenta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--ease);
}

.navbar .nav-menu li a:hover {
    color: var(--text-color);
}

.navbar li a:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
    padding: 2rem 1.5rem 3rem;
    max-width: 1140px;
    margin: auto;
    animation: fadeInUp 0.4s ease-out both;
}

/* ============================================================
   CONTAINER UTILITY
============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   CARDS — clean white with border and lift shadow
============================================================ */
.glass-card,
.value-cards li,
.service-card,
.contact-form-card,
.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--container-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.glass-card:hover,
.value-cards li:hover,
.service-card:hover,
.contact-form-card:hover,
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(181, 19, 91, 0.25);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--container-border);
    background: var(--bg-surface);
    color: var(--text-color);
    transition: background var(--ease), border-color var(--ease),
        transform var(--ease), box-shadow var(--ease);
}

.cta-btn,
.preview-btn,
.btn.primary,
a.btn.primary,
button.cta-btn {
    background: var(--magenta);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 12px var(--magenta-glow);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover,
.preview-btn:hover,
.btn.primary:hover,
button.cta-btn:hover {
    background: var(--magenta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--magenta-glow-strong);
    color: #fff !important;
    text-decoration: none;
}

/* ============================================================
   SECTION DIVIDER
============================================================ */
.section-divider {
    width: 100%;
    height: 1px;
    background: var(--divider);
    margin: 3rem auto;
}

/* ============================================================
   INPUTS
============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--ease), box-shadow var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(181, 19, 91, 0.45);
    box-shadow: 0 0 0 3px rgba(181, 19, 91, 0.10);
}

textarea {
    resize: vertical;
}

select option {
    background: #fff;
    color: var(--text-color);
}

/* ============================================================
   MESSAGE BOXES
============================================================ */
.message-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
}

.message-box.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.message-box.error {
    background: #fff0f5;
    color: #9b1a4a;
    border-color: rgba(181, 19, 91, 0.25);
}

.message-box.warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--container-border);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    font-size: 0.82rem;
}

.site-footer p {
    margin-bottom: 0.35rem;
}

.site-footer strong {
    color: var(--text-color);
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--ease);
}

.site-footer a:hover {
    color: var(--magenta);
}

.footer-links {
    margin-top: 0.6rem;
    font-size: 0.8rem;
}

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

.site-footer .copyright {
    margin-top: 1rem;
    font-size: 0.77rem;
    opacity: 0.55;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 681px) and (max-width: 900px) {
    .navbar .nav-menu li a {
        padding: 0.35rem 0.65rem;
        font-size: 0.76rem;
    }
}

@media (min-width: 681px) and (max-width: 768px) {
    .site-logo {
        width: 185px;
    }

    .logo-container {
        padding: 0.9rem 0 0.6rem;
    }

    .navbar .nav-menu li a {
        font-size: 0.72rem;
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 160px;
    }
}

/* ============================================================
   Shared primitives used across all pages
============================================================ */

.page-hero {
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    border-bottom: 1px solid var(--divider);
    background: linear-gradient(180deg, rgba(181, 19, 91, 0.04) 0%, transparent 70%);
}

.page-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 1.1rem;
}

.page-headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.13;
    color: var(--text-color);
    margin-bottom: 1.1rem;
}

.headline-accent {
    color: var(--magenta);
}

.page-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 0.9rem;
}

.full-rule {
    width: 100%;
    height: 1px;
    background: var(--divider);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--magenta);
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: 0 2px 12px var(--magenta-glow);
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover {
    background: var(--magenta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--magenta-glow-strong);
    color: #fff;
    text-decoration: none;
}

.btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--container-border);
    border-radius: var(--radius-sm);
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.btn-ghost-dark:hover {
    background: var(--bg-surface-2);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* ============================================================
   COOKIE CONSENT BANNER
============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-surface);
    border-top: 1px solid var(--container-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.2rem;
}

.cookie-banner-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: underline;
    white-space: nowrap;
    transition: color var(--ease);
}

.cookie-link:hover {
    color: var(--magenta);
}

.cookie-accept-btn {
    background: var(--magenta);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), transform var(--ease);
    box-shadow: 0 2px 8px var(--magenta-glow);
}

.cookie-accept-btn:hover {
    background: var(--magenta-hover);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
}

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

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--container-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    margin: 0 auto 0.3rem;
    transition: border-color var(--ease), background var(--ease);
}

.nav-toggle:hover {
    background: var(--hover-bg);
    border-color: rgba(181, 19, 91, 0.30);
}

.nav-toggle-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Nav menu — normal on desktop */
.nav-menu {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

@media (max-width: 680px) {

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Hide nav links by default */
    .nav-menu {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-surface);
        border-top: 1px solid var(--divider);
        border-bottom: 1px solid var(--divider);
        padding: 0.5rem 0 1rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
        z-index: 199;
    }

    /* Show when open */
    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        padding: 0;
        font-size: 1.35rem !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: var(--text-color) !important;
        border-radius: 0;
        height: 68px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background var(--ease), color var(--ease);
    }

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

    .nav-menu li a:hover,
    .nav-menu li a:active {
        background: var(--bg-surface-2);
        color: var(--magenta);
    }

    /* Divider between items */
    .nav-menu li+li {
        border-top: 1px solid var(--divider);
    }

    .bottom-line {
        margin-top: 0;
    }

    /* Hide gradient lines on mobile — cleaner with hamburger nav */
    .gradient-line {
        display: none;
    }
}