@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Elms Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Variables - Default Light Warm Editorial */
    --bg-primary: #FAF9F6; /* Eggshell / Warm Cream */
    --bg-secondary: #F4F2EC; /* Slightly darker warm cream */
    --bg-tertiary: #EAE6DB; /* Warm paper grey */
    
    --text-primary: #1C1917; /* Slate charcoal */
    --text-secondary: #44403C; /* Muted stone */
    --text-muted: #78716C;
    
    --border-color: #D6D3D1; /* Softer Stoneware grey border */
    
    /* Sophisticated, cohesive editorial palette */
    --accent-primary: #2E4A3F; /* Soft Spruce Pine Green */
    --accent-primary-hover: #1D3129;
    --accent-secondary: #8C594A; /* Muted Plum / Rosewood */
    --accent-success: #2E4A3F;
    --accent-warning: #A68A56; /* Muted Ochre */
    --accent-info: #5E7A8A; /* Slate Blue */
    --accent-neutral: #2E2E2E;
    
    --card-shadow: none; 
    --hover-shadow: none;
    --border-radius-sm: 0px; 
    --border-radius-md: 0px;
    --border-radius-lg: 0px;
    
    --transition-speed: 0.25s;
}



/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: clip;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.04em;
    word-spacing: -0.1em;
}

.serif-font {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent-primary);
    transition: all var(--transition-speed);
}

a:hover {
    color: var(--accent-primary);
    border-bottom-color: transparent;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border: 1.5px solid var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

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

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Header Styles */
header {
    background-color: var(--bg-primary);
    border-bottom: 1.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo span {
    font-weight: 400;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    font-weight: 600;
}



/* Hero Section */
.hero {
    padding: 4rem 0 8rem 0;
    border-bottom: 1.5px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero h1 span {
    border-bottom: 2px solid var(--accent-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-preview-box {
    border: 1.5px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--bg-secondary);
}

/* Authentic Services Table Layout (Less AI grid boxes) */
.services-section {
    padding: 8rem 0;
    border-bottom: 1.5px solid var(--border-color);
}

.section-header {
    text-align: left;
    max-width: 800px;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Editorial Table representation of services */
.editorial-services {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--text-primary);
}
.service-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
    gap: 2rem;
    color: inherit;
    text-decoration: none;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), padding-left var(--transition-speed);
}

.service-row:hover {
    background-color: var(--bg-secondary);
    padding-left: 2rem;
    border-bottom-color: var(--text-primary);
}

.service-row:hover .service-title h3 {
    color: var(--accent-primary);
}

/* Tab button states */
.services-tabs .tab-btn.active {
    background-color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.services-tabs .tab-btn:hover {
    background-color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}


.service-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-more-info {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
}

.service-row:hover .service-more-info {
    opacity: 1;
    transform: translateX(0);
}



.service-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-bullet-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.service-bullet-list li {
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}


/* Pricing / Calculator Section */
.calculator-section {
    padding: 8rem 0;
    border-bottom: 1.5px solid var(--border-color);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.calc-options {
    background-color: transparent;
}

.calc-group {
    margin-bottom: 3rem;
}

.calc-group h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--text-primary);
    padding-bottom: 0.5rem;
}

.calc-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-info {
    display: flex;
    flex-direction: column;
}

.calc-title {
    font-weight: 700;
    font-size: 1.05rem;
}

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

/* Custom checkbox/switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 1.5px solid var(--text-primary);
    transition: .2s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 2px;
    background-color: var(--text-primary);
    transition: .2s;
}

input:checked + .switch-slider {
    background-color: var(--text-primary);
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: var(--bg-primary);
}

.calc-result-card {
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem;
    position: sticky;
    top: 120px;
}

.calc-result-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.price-display {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
}

.price-display span {
    font-size: 1.15rem;
    font-weight: 400;
}

.calc-summary-list {
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}


/* Contact Simulator Section */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.contact-form-wrapper {
    background-color: transparent;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--text-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
}

.form-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-radio-card {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.form-radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-radio-card span {
    display: block;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.form-radio-card input:checked + span {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.form-radio-card:hover span {
    background-color: var(--bg-secondary);
}

.form-radio-card input:checked:hover span {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}


/* Simplified Realistic Phone Wireframe (Anti-AI glow) */
.phone-simulator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 120px;
}

.phone-mockup {
    width: 320px;
    height: 580px;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.phone-header {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.phone-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.phone-notification {
    background-color: var(--bg-primary);
    border: 1.5px solid var(--text-primary);
    padding: 1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.notification-body {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.phone-messenger {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    border: 1px solid var(--text-primary);
}

.chat-bubble.incoming {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    align-self: flex-start;
}

.chat-bubble.outgoing {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    align-self: flex-end;
}

.phone-simulator-label {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1.5px solid var(--border-color);
    padding: 6rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo-desc p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 360px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: none;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1.5px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MOCK CLIENT PORTAL / DASHBOARD LAYOUT */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.dashboard-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1.5px solid var(--border-color);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all var(--transition-speed);
}

.sidebar-nav-btn:hover, .sidebar-nav-btn.active {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--accent-primary);
    font-weight: 700;
}

.dashboard-main {
    padding: 4rem;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2.2rem;
}

.dashboard-card {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Inbox Tab Layout */
.inbox-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-primary);
    height: 600px;
}

.inbox-list {
    border-right: 2px solid var(--text-primary);
    display: flex;
    flex-direction: column;
}

.inbox-search {
    padding: 1.25rem;
    border-bottom: 1.5px solid var(--border-color);
}

.inbox-channels {
    overflow-y: auto;
    flex-grow: 1;
}

.inbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.inbox-item:hover, .inbox-item.active {
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
}


.inbox-item-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
}

.channel-indicator {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background-color: var(--text-primary);
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    border: 1px solid var(--bg-primary);
}

.inbox-item-details {
    flex-grow: 1;
    min-width: 0;
}

.inbox-item-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.inbox-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.inbox-item-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.inbox-chat {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1.25rem 2rem;
    border-bottom: 1.5px solid var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-history {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: var(--bg-primary);
}

.chat-input-area {
    padding: 1.25rem 2rem;
    border-top: 1.5px solid var(--text-primary);
    display: flex;
    gap: 1rem;
    background-color: var(--bg-secondary);
}

.chat-input {
    flex-grow: 1;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Reports Tab */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.analytics-stat-card {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--text-primary);
    padding: 1.5rem;
}

.analytics-stat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0;
    font-family: var(--font-heading);
}

.analytics-stat-trend {
    font-size: 0.8rem;
    font-weight: 700;
}

.analytics-stat-trend.positive { color: var(--accent-primary); }

.chart-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

.chart-container {
    height: 320px;
    position: relative;
}

/* Settings tab */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.integration-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1.5px solid var(--text-primary);
    background-color: var(--bg-primary);
    margin-bottom: 1rem;
}

.integration-card:last-child {
    margin-bottom: 0;
}

.integration-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.integration-icon {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .calc-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-preview-box, .calc-result-card, .phone-simulator-container {
        position: static;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
}

/* Specifications Sheet Styles */
.spec-block {
    scroll-margin-top: 120px;
}

.spec-table th {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spec-table td {
    padding: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .spec-block > div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}
/* Navigation Dropdown Menu Styling (Mega Menu) */
.nav-dropdown {
    position: static;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 0;
}

.nav-dropdown-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--text-primary);
    border-top: 1.5px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 1000;
    padding: 3rem 0;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.05);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.5rem;
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
}

.mega-menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--accent-primary);
    border-bottom: 1.5px solid var(--text-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mega-menu-links a {
    display: block;
    color: var(--text-primary) !important;
    text-decoration: none;
    border-bottom: none;
    padding: 0;
    transition: transform var(--transition-speed);
}

.mega-menu-links a:hover {
    background: transparent !important;
    transform: translateX(4px);
}

.mega-menu-links a strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color var(--transition-speed);
}

.mega-menu-links a:hover strong {
    color: var(--accent-secondary);
}

.mega-menu-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

/* Background Decorative Shapes (Mid-century/Editorial) */
.bg-shape-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-shape {
    position: absolute;
    opacity: 0.16;
    transition: opacity var(--transition-speed);
}



.shape-1 { width: 320px; height: 320px; background-color: #E2B13C; border-radius: 50%; top: 2%; left: -8%; }
.shape-2 { width: 260px; height: 260px; background-color: #C15132; border-radius: 40px; transform: rotate(15deg); top: 6%; right: -6%; }
.shape-3 { width: 0; height: 0; border-left: 140px solid transparent; border-right: 140px solid transparent; border-bottom: 240px solid #55876B; top: 11%; left: 4%; }
.shape-4 { width: 380px; height: 340px; background-color: #72496A; border-radius: 30% 70% 40% 60% / 50% 60% 40% 50%; top: 16%; right: 3%; }
.shape-5 { width: 280px; height: 280px; background-color: #1A5950; border-radius: 50%; top: 21%; left: -4%; }
.shape-6 { width: 200px; height: 200px; background-color: #DF6C51; transform: rotate(45deg); top: 26%; right: 8%; }
.shape-7 { width: 350px; height: 350px; background-color: #42829F; border-radius: 60% 40% 70% 30% / 50% 40% 60% 50%; top: 31%; left: 6%; }
.shape-8 { width: 280px; height: 280px; border: 45px solid #DF9C20; border-radius: 50%; top: 36%; right: -8%; }
.shape-9 { width: 180px; height: 180px; background-color: #DF6C51; border-radius: 50%; top: 41%; left: 12%; }
.shape-10 { width: 220px; height: 220px; background-color: #55876B; border-radius: 20px; transform: rotate(-20deg); top: 45%; right: 15%; }
.shape-11 { width: 0; height: 0; border-left: 110px solid transparent; border-right: 110px solid transparent; border-bottom: 190px solid #DF9C20; top: 50%; left: -5%; }
.shape-12 { width: 300px; height: 300px; background-color: #72496A; border-radius: 50% 50% 20% 80%; top: 54%; right: -6%; }
.shape-13 { width: 250px; height: 250px; border: 35px solid #1A5950; border-radius: 50%; top: 59%; left: 10%; }
.shape-14 { width: 210px; height: 210px; background-color: #C15132; transform: rotate(30deg); top: 63%; right: 5%; }
.shape-15 { width: 340px; height: 310px; background-color: #E2B13C; border-radius: 40% 60% 50% 50%; top: 68%; left: -8%; }
.shape-16 { width: 270px; height: 270px; background-color: #42829F; border-radius: 50%; top: 72%; right: -4%; }
.shape-17 { width: 0; height: 0; border-left: 130px solid transparent; border-right: 130px solid transparent; border-top: 220px solid #72496A; top: 76%; left: 3%; }
.shape-18 { width: 240px; height: 240px; background-color: #55876B; border-radius: 30px; transform: rotate(10deg); top: 80%; right: 12%; }
.shape-19 { width: 310px; height: 310px; background-color: #DF6C51; border-radius: 70% 30% 50% 50%; top: 84%; left: -5%; }
.shape-20 { width: 230px; height: 230px; border: 40px solid #C15132; border-radius: 50%; top: 88%; right: -5%; }
.shape-21 { width: 290px; height: 290px; background-color: #1A5950; border-radius: 50%; top: 92%; left: 8%; }
.shape-22 { width: 200px; height: 200px; background-color: #E2B13C; transform: rotate(15deg); top: 95%; right: 15%; }
.shape-23 { width: 0; height: 0; border-left: 100px solid transparent; border-right: 100px solid transparent; border-bottom: 180px solid #42829F; top: 97%; left: -4%; }
.shape-24 { width: 320px; height: 280px; background-color: #72496A; border-radius: 50%; top: 98%; right: 2%; }
/* Scroll Pinning wrappers */
.walkthrough-pin-wrapper {
    height: 240vh;
    position: relative;
    margin-bottom: 10rem;
}

.walkthrough-section {
    position: sticky;
    top: calc(10vh + 100px);
    height: calc(80vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
}

.walkthrough-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: center;
    transform: translateY(-30px);
}

.walkthrough-card-1 {
    transform: translateY(-20px);
    margin-right: -100px;
    z-index: 1;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.walkthrough-card-2 {
    transform: translateY(10px);
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.walkthrough-card-3 {
    transform: translateY(-10px);
    margin-left: -100px;
    z-index: 2;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Static walkthrough spacing overrides */
.static-walkthrough .walkthrough-grid {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}
.static-walkthrough .walkthrough-card-1,
.static-walkthrough .walkthrough-card-2,
.static-walkthrough .walkthrough-card-3 {
    width: 325px !important;
    flex-shrink: 0 !important;
}
.static-walkthrough .phone-mockup {
    width: 325px !important;
}
.static-walkthrough .walkthrough-card-1 {
    margin-right: 60px !important;
    margin-left: 0 !important;
    position: relative;
    z-index: 10 !important;
}
.static-walkthrough .walkthrough-card-2 {
    margin-right: 15px !important;
    margin-left: 0 !important;
    position: relative;
}
.static-walkthrough .walkthrough-card-3 {
    margin: 0 !important;
    position: relative;
}


/* Scroll Focus Styling */
.walkthrough-grid .walkthrough-card-1.scroll-focus,
.walkthrough-grid .walkthrough-card-2.scroll-focus,
.walkthrough-grid .walkthrough-card-3.scroll-focus {
    opacity: 1 !important;
    filter: none !important;
    z-index: 10 !important;
}

.walkthrough-grid:has(.scroll-focus) .walkthrough-card-1:not(.scroll-focus),
.walkthrough-grid:has(.scroll-focus) .walkthrough-card-2:not(.scroll-focus),
.walkthrough-grid:has(.scroll-focus) .walkthrough-card-3:not(.scroll-focus) {
    opacity: 0.6;
    filter: grayscale(15%);
}

/* Static walkthrough section override */
.walkthrough-section.static-walkthrough {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: 8rem 0 !important;
    display: block !important;
}

/* Sliding Cards Deck (Missed Call Section) */
.sliding-deck .phone-mockup {
    width: 290px;
    height: 520px;
}

.sliding-deck .walkthrough-card-1 {
    transform: translateY(-20px) rotate(-1deg);
    margin-right: -100px;
    z-index: 1;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sliding-deck .walkthrough-card-2 {
    transform: translate(60px, 120px) rotate(8deg);
    opacity: 0;
    z-index: 2;
    margin-right: -100px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sliding-deck .walkthrough-card-3 {
    transform: translate(120px, 120px) rotate(15deg);
    opacity: 0;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll-focused / visible states for sliding cards */
.sliding-deck .walkthrough-card-2.scroll-focus {
    transform: translateY(10px) rotate(0deg) !important;
    opacity: 1 !important;
}

.sliding-deck .walkthrough-card-3.scroll-focus {
    transform: translateY(-10px) rotate(1deg) !important;
    opacity: 1 !important;
}

/* If Card 3 is active/focused, keep Card 2 fully visible under it */
.sliding-deck:has(.walkthrough-card-3.scroll-focus) .walkthrough-card-2 {
    transform: translateY(10px) rotate(0deg) !important;
    opacity: 1 !important;
}

@media (max-width: 992px) {
    .walkthrough-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
    .static-walkthrough .walkthrough-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4.5rem !important;
    }
    .static-walkthrough .walkthrough-card-1,
    .static-walkthrough .walkthrough-card-2,
    .static-walkthrough .walkthrough-card-3 {
        margin: 0 !important;
        width: 100% !important;
        max-width: 325px !important;
    }
    .static-walkthrough .phone-mockup {
        width: 100% !important;
        max-width: 325px !important;
    }
    .walkthrough-grid:hover .walkthrough-card-1,
    .walkthrough-grid:hover .walkthrough-card-2,
    .walkthrough-grid:hover .walkthrough-card-3 {
        opacity: 1 !important;
        filter: none !important;
    }
    .walkthrough-card-1,
    .walkthrough-card-2,
    .walkthrough-card-3 {
        transform: none !important;
        margin: 0 !important;
    }
    .walkthrough-card-1:hover,
    .walkthrough-card-2:hover,
    .walkthrough-card-3:hover {
        transform: none !important;
    }
    .walkthrough-pin-wrapper {
        height: auto !important;
    }
    .walkthrough-section {
        position: relative !important;
        height: auto !important;
        padding: 6rem 0 !important;
    }
    #rotate-service,
    #rotate-industry {
        width: auto !important;
        display: inline !important;
    }
}

/* Doodly Callout Styles */
.doodly-arrow-to-sms {
    position: absolute;
    right: -85px;
    top: 25%;
    z-index: 5;
    pointer-events: none;
}


.doodly-arrow-to-email {
    position: absolute;
    right: -245px;
    top: -50px;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 1250px) {
    .doodly-arrow-to-sms,
    .doodly-arrow-to-email,
    .doodly-floating-text {
        display: none !important;
    }
}


/* Custom Business Systems Section */
.custom-apps-showcase {
    padding: 6rem 0;
    padding-bottom: 4rem;
    border-top: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.custom-apps-grid {
    border: 1.5px solid var(--text-primary);
    background-color: var(--bg-primary);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.custom-apps-list {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .custom-apps-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
}

/* Sticky Right-Rail Navigation */
.right-rail-nav {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.right-rail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    padding: 0;
    margin: 0;
}

/* Right-Rail Categories Styling */
.rail-category-header {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-secondary);
    text-align: right;
    margin-top: 0.75rem;
    margin-right: 6px;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
}
.rail-category-header:first-child {
    margin-top: 0;
}

.right-rail-list-tighter {
    gap: 1rem !important;
}

/* Vertical timeline connector line */
.right-rail-list::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1.5px;
    background-color: var(--border-color);
    z-index: 1;
}

.right-rail-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
    gap: 1rem;
}

.rail-dot {
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--text-primary);
    background-color: var(--bg-primary);
    border-radius: 50%;
    transition: all var(--transition-speed);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.rail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* Hover & Active triggers */
.right-rail-link:hover .rail-label {
    opacity: 1;
}

.right-rail-link:hover .rail-dot {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

.right-rail-link.active .rail-dot {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: scale(1.3);
}

.right-rail-link.active .rail-label {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
    border-color: var(--accent-secondary);
}

/* Responsive reset - hide on screens where content might overlap */
@media (max-width: 1350px) {
    .right-rail-nav {
        display: none !important;
    }
}

/* Interactive Quiz Option States */
.quiz-option-card:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary) !important;
}

.quiz-option-card:has(input:checked) {
    border-color: var(--accent-secondary) !important;
    background-color: var(--bg-secondary) !important;
    box-shadow: 0 0 0 1px var(--accent-secondary);
}

/* Hero Rotating Text Transitions */
#rotate-service,
#rotate-industry {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    vertical-align: baseline;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 6rem 0;
    border-top: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.faq-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.faq-filter-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.faq-filter-btn:hover,
.faq-filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--text-primary);
}

.faq-item {
    border-bottom: 1.5px solid var(--border-color);
    padding: 1.5rem 0;
    transition: all var(--transition-speed);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    gap: 1.5rem;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-heading);
}

.faq-toggle-icon {
    font-size: 1rem;
    transition: transform var(--transition-speed);
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding-top 0.35s ease;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 1rem;
}

/* Contact Form Specific Styling */
.contact-form-section {
    padding: 6rem 0;
    border-top: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Dynamic Receipt Styling */
.receipt-card {
    border: 2px dashed var(--accent-secondary);
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    margin-top: 1.5rem;
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.receipt-header {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}

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

/* Floating Help Link */
.floating-help-link {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition-speed), transform var(--transition-speed);
}

.floating-help-link a {
    color: var(--text-primary);
    border-bottom: none;
}

.floating-help-link:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-help-link {
        display: none !important;
    }
}

/* Portfolio Work Page Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.work-card {
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-primary);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.work-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
}

.work-card-info {
    margin-bottom: 2rem;
}

.work-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.work-card h3 {
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem 0;
    font-family: var(--font-heading);
}

.work-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.work-card-metrics {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.work-metric-item span {
    display: block;
}

.work-metric-item .metric-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.work-metric-item .metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* Guarantee Card Block Styling */
.guarantee-block {
    padding: 6rem 0;
    border-top: 1.5px solid var(--border-color);
}

.guarantee-card {
    border: 2px dashed var(--accent-secondary);
    background-color: var(--bg-secondary);
    padding: 3.5rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.guarantee-card h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.guarantee-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.guarantee-bullets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    border-top: 1px dashed var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .guarantee-bullets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.guarantee-bullet-item {
    font-size: 0.9rem;
}

.guarantee-bullet-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

/* Onboarding Status Timeline */
.onboarding-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-left: 2.5rem;
}

.onboarding-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.timeline-badge {
    position: absolute;
    left: -2.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all var(--transition-speed);
}

.timeline-step.completed .timeline-badge {
    background-color: var(--accent-success);
    border-color: var(--accent-success);
    color: var(--bg-primary);
}

.timeline-step.active .timeline-badge {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-content {
    flex-grow: 1;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-primary);
    padding: 1.5rem;
    transition: all var(--transition-speed);
}

.timeline-step.active .timeline-content {
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.timeline-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
}

.timeline-content p {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-status-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

.timeline-step.completed .step-status-tag {
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
}

.timeline-step.active .step-status-tag {
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
}

.timeline-step.pending .step-status-tag {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

/* Responsive Doodle Annotation */
@media (max-width: 1200px) {
    .doodle-annotation {
        display: none !important;
    }
}

/* Premium Chatbot Widget Styling */
.chatbot-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-body);
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: var(--accent-primary-hover);
}

.chatbot-toggle-btn i {
    transition: transform 0.3s ease;
}

.chatbot-toggle-btn.active i {
    transform: rotate(90deg);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background-color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--text-primary);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chatbot-header-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.chatbot-header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chatbot-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chatbot-header-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.chatbot-header-btn:hover {
    color: var(--text-primary);
}

.chatbot-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-primary);
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    display: inline-block;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-primary);
    border-top: 1px dashed var(--border-color);
}

.quick-reply-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border: 1.5px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.quick-reply-btn:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 2px solid var(--text-primary);
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
}

.chatbot-input {
    flex: 1;
    border: 1.5px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.chatbot-send-btn {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1.5px solid var(--text-primary);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.chatbot-send-btn:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Typing Indicator styling */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments for chatbot */
@media (max-width: 480px) {
    .chatbot-widget-container {
        bottom: 1rem;
        right: 1rem;
    }
    .chatbot-window {
        width: calc(100vw - 2rem);
        height: 480px;
        right: 0;
        bottom: 70px;
    }
}

body.chat-page-body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-page-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 80px); /* Fill screen below header */
    border-left: 1.5px solid var(--border-color);
    border-right: 1.5px solid var(--border-color);
    border-bottom: 1.5px solid var(--border-color);
}

.chat-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.chat-sidebar-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.chat-sidebar-item:hover, .chat-sidebar-item.active {
    background-color: var(--bg-tertiary);
}

.chat-sidebar-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.chat-sidebar-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main-area {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    height: 100%;
    min-height: 0;
}

.chat-main-header {
    padding: 1.5rem 2rem;
    border-bottom: 1.5px solid var(--border-color);
    background-color: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-main-messages {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-main-messages .chat-bubble {
    max-width: 65%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
}

.chat-main-input-container {
    padding: 1.5rem 2rem;
    border-top: 1.5px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-main-input {
    flex: 1;
    border: 2px solid var(--border-color);
    padding: 1rem 1.25rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.chat-main-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.chat-main-send {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.chat-main-send:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .chat-page-container {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
}





