/* Typography & Content Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    color: #0d0d0d;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1.5em;
    color: #2c2c2c;
}

/* Header & Logo */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-kraken {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
}

.kraken-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 2.2em;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-subtitle {
    font-size: 0.9em;
    color: #e0e0e0;
    margin-top: 4px;
    font-weight: 400;
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s;
}

.contact-item:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Content Post (Doorway) */
.content-post {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
}

.content-post h1:first-child {
    margin-top: 0;
    border-bottom: 3px solid #1a1a2e;
    padding-bottom: 15px;
}

.content-post p:first-of-type::first-letter {
    font-size: 3.5em;
    font-weight: bold;
    float: left;
    line-height: 0.9;
    margin: 5px 10px 0 0;
    color: #1a1a2e;
}

.content-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-post blockquote {
    border-left: 4px solid #1a1a2e;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f5f5f5;
    font-style: italic;
    color: #333;
    border-radius: 0 8px 8px 0;
}

/* Lists */
.content-post ul,
.content-post ol {
    margin: 20px 0 30px 25px;
    color: #2c2c2c;
}

.content-post li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-post ul li {
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.content-post ul li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #1a1a2e;
    font-size: 0.8em;
}

.content-post ol {
    counter-reset: item;
}

.content-post ol li {
    counter-increment: item;
    position: relative;
    padding-left: 30px;
}

.content-post ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #1a1a2e;
}

/* Tables */
.content-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-post table th {
    background: #1a1a2e;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.content-post table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #2c2c2c;
}

.content-post table tr:hover {
    background: #f9f9f9;
}

.content-post table tr:last-child td {
    border-bottom: none;
}

/* Buttons & Links */
a {
    color: #1a1a2e;
    text-decoration: underline;
    transition: all 0.3s;
}

a:hover {
    color: #16213e;
    text-decoration: none;
}

.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f172a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: #fff;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 30px auto;
}

.contact-form h2 {
    margin-top: 0;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
    color: #1a1a1a;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26,26,46,0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    color: #1a1a1a;
}

.chat-send {
    padding: 10px 20px;
    border-radius: 20px;
}

/* Spacing & Rhythm */
.content-post > * + * {
    margin-top: 1.5em;
}

.content-post > h2 + *,
.content-post > h3 + * {
    margin-top: 0.8em;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-post {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }
    
    .site-header {
        padding: 15px 0;
    }
    
    .logo-kraken {
        width: 60px;
        height: 60px;
    }
    
    .logo-title {
        font-size: 1.6em;
    }
    
    .logo-subtitle {
        font-size: 0.8em;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-post {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .content-post table {
        font-size: 0.9em;
    }
    
    .content-post table th,
    .content-post table td {
        padding: 10px;
    }
    
    .contact-form {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .chat-window {
        width: 300px;
        height: 450px;
    }
    
    .live-chat-widget {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-post p:first-of-type::first-letter {
        font-size: 2.5em;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }
    
    .chat-window {
        width: calc(100vw - 30px);
        right: -10px;
    }
    
    .content-post blockquote {
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .contact-form,
    .live-chat-widget {
        display: none;
    }
    
    .content-post {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        color: #1a1a1a;
        text-decoration: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

*:focus {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: #1a1a2e;
    color: #fff;
}

::-moz-selection {
    background: #1a1a2e;
    color: #fff;
}
