/* Gambit Property - Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }
.accent-gold { color: #E5B841; }

/* Page Hero */
.page-hero {
    background: linear-gradient(120deg, #0f0f10 0%, #131417 58%, #1a1c20 100%);
    border-bottom: 4px solid #E5B841;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(229, 184, 65, 0.22), transparent 42%),
        linear-gradient(95deg, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
}

/* Page Title */
.page-title {
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-wrap: balance;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding-bottom: 0.45rem;
}
@media (min-width: 768px) {
    .page-title {
        font-size: 1.125rem;
    }
}
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(150px, 55%);
    height: 2px;
    background: linear-gradient(90deg, #E5B841 0%, rgba(229, 184, 65, 0.35) 100%);
}

/* Pro Page Section Styling */
.pro-page { letter-spacing: 0.01em; }
.pro-page h2 { font-weight: 900; letter-spacing: -0.02em; }
.pro-page h3, .pro-page h4 { font-weight: 700; letter-spacing: -0.01em; }
.pro-page p { line-height: 1.75; }
.pro-page .stat-box {
    background: #111;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.pro-page .stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: #E5B841;
}
.pro-page .stat-value { font-size: 2rem; font-weight: 900; color: #E5B841; }
.pro-page .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; color: #ccc; }

/* Card Hover Effects */
.team-card { transition: transform 0.3s, box-shadow 0.3s; border-radius: 12px; overflow: hidden; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.value-card { transition: transform 0.3s, box-shadow 0.3s; border-radius: 12px; overflow: hidden; }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

/* Carousel Animations */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

/* Nav link styles */
.nav-link {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: #E5B841;
}
.nav-link-mobile {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s;
}
.nav-link-mobile:hover,
.nav-link-mobile.active {
    color: #E5B841;
}

/* Calculator Tab Styles (Services page) */
.calc-tab {
    cursor: pointer;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
}
.calc-tab:hover { border-color: #E5B841; color: #E5B841; }
.calc-tab-active {
    background: #111 !important;
    color: #E5B841 !important;
    border-color: #111 !important;
}

/* Chat Widget Styles */
#gambitChat { font-family: 'Inter', Arial, sans-serif; }
#gambitChatBtn {
    position: fixed; bottom: 24px; right: 24px; z-index: 99990;
    width: 62px; height: 62px; border-radius: 50%;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); color: #E5B841; border: 2px solid #E5B841;
    font-size: 28px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(229,184,65,0);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
#gambitChatBtn:hover { background: #E5B841; color: #111; transform: scale(1.1); box-shadow: 0 8px 30px rgba(229,184,65,0.3); }
#gambitChatBtn.gc-pulse { animation: gcPulseBtn 2s infinite; }
@keyframes gcPulseBtn {
    0% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(229,184,65,0.5); }
    70% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 12px rgba(229,184,65,0); }
    100% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(229,184,65,0); }
}
.gc-badge {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #111; animation: gcBadgePop 0.3s ease-out;
}
@keyframes gcBadgePop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Chat Window Container */
#gambitChatWindow {
    position: fixed; bottom: 96px; right: 24px; z-index: 99991;
    width: 380px; max-width: calc(100vw - 32px);
    height: 520px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
    display: none; flex-direction: column; overflow: hidden;
    animation: gcSlideUp 0.3s ease-out;
}
@keyframes gcSlideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
#gambitChatWindow.open { display: flex; }

/* Chat Header */
.gc-header {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); color: #fff;
    padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; border-bottom: 3px solid #E5B841; min-height: 56px;
}
.gc-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gc-header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.gc-avatar-sm {
    width: 32px; height: 32px; border-radius: 50%; background: #E5B841; color: #111;
    font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gc-header h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.gc-header span { color: #E5B841; }
.gc-status { display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.gc-status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    display: inline-block; flex-shrink: 0;
}
.gc-status-dot.typing { background: #E5B841; animation: gcStatusBlink 1s infinite; }
@keyframes gcStatusBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
#gcStatusText { font-size: 10px; color: #aaa; font-weight: 500; }
.gc-header-btn { background: none; border: none; color: #888; font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: all 0.2s; line-height: 1; }
.gc-header-btn:hover { color: #E5B841; background: rgba(229,184,65,0.1); }
.gc-close { background: none; border: none; color: #888; font-size: 22px; cursor: pointer; padding: 0 4px; transition: color 0.2s; line-height: 1; }
.gc-close:hover { color: #E5B841; }

/* Messages Area */
.gc-messages {
    flex: 1 1 0%; overflow-y: auto; padding: 14px 12px; display: flex;
    flex-direction: column; gap: 10px; background: #f9fafb;
    scroll-behavior: smooth; min-height: 0;
}
.gc-messages::-webkit-scrollbar { width: 4px; }
.gc-messages::-webkit-scrollbar-track { background: transparent; }
.gc-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Message Rows & Bubbles */
.gc-msg-row { display: flex; gap: 8px; align-items: flex-start; width: 100%; min-width: 0; }
.gc-msg-row.bot { justify-content: flex-start; }
.gc-msg-row.user { justify-content: flex-end; }
.gc-msg-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: #111; color: #E5B841;
    font-weight: 800; font-size: 10px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1.5px solid #E5B841; margin-top: 2px;
}
.gc-msg-content { display: flex; flex-direction: column; min-width: 0; max-width: calc(100% - 40px); }
.gc-msg-content.right { align-items: flex-end; }
.gc-msg {
    padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.55;
    word-wrap: break-word; overflow-wrap: break-word; word-break: break-word;
    max-width: 100%;
}
.gc-msg.bot {
    background: #111; color: #f0f0f0; border-bottom-left-radius: 4px;
    font-size: 12px; line-height: 1.55;
}
.gc-msg.bot strong { color: #E5B841; }
.gc-msg.bot a { color: #E5B841; text-decoration: underline; word-break: break-all; }
.gc-msg.user {
    background: linear-gradient(135deg, #E5B841 0%, #d4a735 100%); color: #111;
    border-bottom-right-radius: 4px; font-weight: 500;
}
.gc-msg.bot p { margin: 3px 0; }
.gc-timestamp { font-size: 9px; color: #aaa; margin-top: 2px; padding: 0 4px; }
.gc-timestamp.right { text-align: right; }
.gc-animate-in { animation: gcFadeSlide 0.3s ease-out; }
@keyframes gcFadeSlide { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }

/* Input Area */
.gc-input-area {
    display: flex; padding: 10px 12px; border-top: 1px solid #e5e7eb; background: #fff;
    flex-shrink: 0; gap: 8px; align-items: center;
}
.gc-input-area input {
    flex: 1 1 0%; min-width: 0; border: 1.5px solid #d1d5db; border-radius: 10px; padding: 9px 12px;
    font-size: 13px; outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.gc-input-area input:focus { border-color: #E5B841; box-shadow: 0 0 0 3px rgba(229,184,65,0.15); }
.gc-input-area button {
    background: #E5B841; color: #111; border: none; border-radius: 10px;
    padding: 9px 16px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.2s;
    flex-shrink: 0; white-space: nowrap; font-family: inherit;
}
.gc-input-area button:hover:not(:disabled) { background: #111; color: #E5B841; }
.gc-input-area button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Lead Form */
.gc-lead-form {
    padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
    flex: 1 1 0%; justify-content: center; background: #f9fafb; overflow-y: auto;
}
.gc-lead-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: #111; color: #E5B841;
    font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; border: 2px solid #E5B841;
}
.gc-lead-form label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-bottom: 1px; }
.gc-lead-form input {
    border: 1.5px solid #d1d5db; border-radius: 10px; padding: 9px 12px;
    font-size: 13px; outline: none; transition: border 0.2s, box-shadow 0.2s;
    width: 100%; box-sizing: border-box; font-family: inherit;
}
.gc-lead-form input:focus { border-color: #E5B841; box-shadow: 0 0 0 3px rgba(229,184,65,0.15); }
.gc-lead-form button {
    background: #E5B841; color: #111; border: none; border-radius: 10px;
    padding: 11px; font-weight: 700; font-size: 13px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
    transition: all 0.2s; font-family: inherit;
}
.gc-lead-form button:hover { background: #111; color: #E5B841; }
.gc-lead-form .gc-err { color: #dc2626; font-size: 11px; display: none; margin-top: 2px; }

/* Typing Indicator */
.gc-typing { padding: 8px 14px; background: #111; border-radius: 14px; border-bottom-left-radius: 4px; display: inline-block; }
.gc-typing span { display: inline-block; width: 7px; height: 7px; background: #E5B841; border-radius: 50%; margin: 0 2px; animation: gcBounce 1.4s infinite; }
.gc-typing span:nth-child(2) { animation-delay: 0.2s; }
.gc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes gcBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }

/* Quick Reply Buttons */
.gc-quick-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; padding-left: 34px; }
.gc-quick-btn {
    background: transparent; border: 1.5px solid #E5B841; color: #E5B841; border-radius: 20px;
    padding: 4px 12px; font-size: 11px; cursor: pointer; font-weight: 600; transition: all 0.2s;
    line-height: 1.4;
}
.gc-quick-btn:hover { background: #E5B841; color: #111; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(229,184,65,0.3); }

/* Mobile chat responsiveness */
@media (max-width: 480px) {
    #gambitChatWindow {
        width: calc(100vw - 16px); right: 8px; bottom: 76px;
        height: calc(100dvh - 96px); max-height: calc(100dvh - 96px);
        border-radius: 14px;
    }
    #gambitChatBtn { width: 52px; height: 52px; bottom: 16px; right: 12px; }
    .gc-header { padding: 10px 12px; min-height: 50px; }
    .gc-header h3 { font-size: 11px; }
    .gc-avatar-sm { width: 28px; height: 28px; font-size: 12px; }
    .gc-messages { padding: 10px 8px; gap: 8px; }
    .gc-msg-content { max-width: calc(100% - 36px); }
    .gc-msg-avatar { width: 24px; height: 24px; font-size: 9px; }
    .gc-msg.bot { font-size: 11.5px; padding: 8px 10px; }
    .gc-msg.user { font-size: 12px; padding: 8px 10px; }
    .gc-quick-btns { padding-left: 0; gap: 4px; }
    .gc-quick-btn { font-size: 10px; padding: 3px 9px; }
    .gc-input-area { padding: 8px 8px; gap: 6px; }
    .gc-input-area input { padding: 8px 10px; font-size: 13px; }
    .gc-input-area button { padding: 8px 12px; font-size: 12px; }
    .gc-lead-form { padding: 16px 14px; gap: 8px; }
}

/* Tablet tweaks */
@media (min-width: 481px) and (max-width: 768px) {
    #gambitChatWindow { width: 360px; height: 500px; }
}
