/* ============================================================
   products.css — Shell Stylesheet
   CCH SureTax Developer Portal · Products Section
   Layout: Fixed header + fixed sidebar + scrollable content pane.
   The overview (two-zone tile gallery) is inline; detail pages
   load in an iframe that fills the content pane.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --wk-blue: #007AC3;
    --wk-blue-medium: #409BD2;
    --wk-blue-light: #A6D0EA;
    --wk-blue-ultra-light: #E8F4FB;
    --wk-green: #5A8A15;
    --wk-green-medium: #7BAA3C;
    --wk-teal: #00A3A1;
    --wk-teal-medium: #33B8B6;
    --wk-orange: #FF6B35;
    --wk-red: #E5202E;
    --wk-purple: #6B21A8;
    --solution-color: #0F3460;
    --solution-accent: #1A6FB5;
    --app-color: #3F51B5;
    --card-border-color: rgba(0, 0, 0, 0.3);
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --header-height: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Base ---------- */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

a { color: var(--wk-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.header-logo:hover { text-decoration: none; }

.logo-img {
    height: 28px;
    width: auto;
}

.logo-mark {
    background: var(--wk-blue);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    color: rgba(255,255,255,0.8);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.primary-nav a:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.primary-nav a.active { color: white; background: rgba(255,255,255,0.15); }

.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
}

.help-link {
    color: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-link:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.help-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Page Container ---------- */
.page-container {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
}

/* ---------- Sidebar ---------- */
.sidebar-nav {
    width: 260px;
    min-width: 260px;
    padding: 24px 16px;
    border-right: 1px solid var(--gray-200);
    background: white;
    overflow-y: auto;
}

.sidebar-section { margin-bottom: 20px; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { margin: 0; padding: 0; }

.sidebar-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-400);
    margin-bottom: 8px;
    padding: 0 12px;
}

.sidebar-nav a {
    display: block;
    padding: 6px 12px;
    color: var(--gray-600);
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-nav a:hover { color: var(--wk-blue); background: var(--wk-blue-ultra-light); text-decoration: none; }
.sidebar-nav a.active { color: var(--wk-blue); background: var(--wk-blue-ultra-light); font-weight: 600; }

/* ---------- Content Pane ---------- */
.content-pane {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* ---------- Overview Content ---------- */
.overview-content {
    padding: 32px 48px;
    max-width: 1300px;
}

.overview-content.hidden { display: none; }

/* ---------- Detail Iframe ---------- */
.detail-frame {
    display: none;
    width: 100%;
    height: 100%;
    border: none;
}

.detail-frame.visible { display: block; }

/* ---------- Typography ---------- */
h1 {
    color: var(--wk-blue);
    font-size: 28pt;
    font-weight: 700;
    margin-bottom: 12px;
}

.lead {
    font-size: 13pt;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

p { margin-bottom: 16px; }
ol, ul { margin-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

/* ---------- Zone Headers ---------- */
.zone-header {
    margin-top: 40px;
    margin-bottom: 8px;
    padding-top: 20px;
    border-top: 2px solid var(--wk-blue);
}

.zone-header:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.zone-header h2 {
    font-size: 18pt;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.zone-header .zone-tagline {
    font-size: 10.5pt;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 0;
}

.zone-header.solutions { border-top-color: var(--solution-accent); }
.zone-header.applications { border-top-color: var(--app-color); }

/* ---------- Tile Grid ---------- */
.tile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 32px;
}

/* ---------- Solution Tiles (larger, hero-style) ---------- */
.tile-solution {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 200px;
    min-height: 300px;
    border: 1px solid #6B6B6B;
    border-radius: 12px;
    padding: 20px 18px;
    background-color: white;
    background-image: linear-gradient(135deg, #f0f7ff 0%, #fefefe 50%, #f8f0ff 100%);
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tile-solution:hover {
    border-color: var(--solution-accent);
    box-shadow: 0 0 0 1px var(--solution-accent), 5px 5px 12px rgba(26,111,181,0.2);
    text-decoration: none;
}

.tile-solution .tile-icon-box {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--solution-color), var(--solution-accent));
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tile-solution .tile-icon-box svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.tile-solution .tile-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tile-solution .tile-desc {
    font-size: 9pt;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.tile-solution .tile-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.tile-solution .tile-includes .incl-tag {
    font-size: 7.5pt;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--wk-blue-ultra-light);
    color: var(--wk-blue);
    border: 1px solid var(--wk-blue-light);
}

.tile-solution .tile-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 9pt;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    transition: all 0.2s;
}

.tile-solution:hover .tile-btn {
    background: linear-gradient(135deg, var(--solution-color), var(--solution-accent));
    color: white;
    border-color: var(--solution-accent);
}

/* ---------- Application Tiles (standard, like integrations) ---------- */
.tile-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 210px;
    min-height: 260px;
    border: 1px solid #6B6B6B;
    border-radius: 10px;
    padding: 16px 14px;
    background-color: white;
    background-image: linear-gradient(to bottom right, white, #FEF8F8);
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tile-app:hover {
    border-color: var(--app-color);
    box-shadow: 0 0 0 1px var(--app-color), 5px 5px 10px rgba(63,81,181,0.25);
    text-decoration: none;
}

.tile-app .tile-icon-box {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tile-app .tile-icon-box.calc { background: linear-gradient(135deg, var(--wk-blue), var(--wk-blue-medium)); }
.tile-app .tile-icon-box.returns { background: linear-gradient(135deg, var(--wk-teal), var(--wk-teal-medium)); }
.tile-app .tile-icon-box.investigator { background: linear-gradient(135deg, var(--wk-purple), #9575CD); }
.tile-app .tile-icon-box.address { background: linear-gradient(135deg, var(--wk-red), #FF6B6B); }

.tile-app .tile-icon-box svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.tile-app .tile-title {
    text-align: center;
    font-size: 11pt;
    font-weight: 700;
    color: var(--gray-900);
    padding: 4px 4px 8px;
    line-height: 1.3;
}

.tile-app .tile-desc {
    text-align: center;
    font-size: 8.5pt;
    color: var(--gray-600);
    line-height: 1.5;
    padding: 0 2px;
    flex: 1;
}

.tile-app .tile-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 9pt;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    transition: all 0.2s;
}

/* App tile category-specific hovers */
.tile-app.calc:hover { border-color: var(--wk-blue-medium); box-shadow: 0 0 0 1px var(--wk-blue), 5px 5px 10px rgba(0,122,195,0.25); }
.tile-app.returns:hover { border-color: var(--wk-teal-medium); box-shadow: 0 0 0 1px var(--wk-teal), 5px 5px 10px rgba(0,163,161,0.25); }
.tile-app.investigator:hover { border-color: #9575CD; box-shadow: 0 0 0 1px var(--wk-purple), 5px 5px 10px rgba(107,33,168,0.25); }
.tile-app.address:hover { border-color: #FF6B6B; box-shadow: 0 0 0 1px var(--wk-red), 5px 5px 10px rgba(229,32,46,0.25); }

.tile-app.calc:hover .tile-btn { background: linear-gradient(135deg, var(--wk-blue), var(--wk-blue-medium)); color: white; border-color: var(--wk-blue); }
.tile-app.returns:hover .tile-btn { background: linear-gradient(135deg, var(--wk-teal), var(--wk-teal-medium)); color: white; border-color: var(--wk-teal); }
.tile-app.investigator:hover .tile-btn { background: linear-gradient(135deg, var(--wk-purple), #9575CD); color: white; border-color: var(--wk-purple); }
.tile-app.address:hover .tile-btn { background: linear-gradient(135deg, var(--wk-red), #FF6B6B); color: white; border-color: var(--wk-red); }

/* ---------- Callout ---------- */
.callout {
    border-left: 4px solid var(--wk-blue);
    background: var(--wk-blue-ultra-light);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 32px;
}

.callout h4 {
    font-size: 11pt;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.callout p { margin-bottom: 0; font-size: 10pt; color: var(--gray-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .sidebar-nav { display: none; }
    .overview-content { padding: 24px 20px; }
    .tile-grid { justify-content: center; }
    .tile-solution { flex: 1 1 100%; max-width: 340px; }
    .tile-app { width: 100%; max-width: 280px; }
    .primary-nav { display: none; }
}
