/* Typography & Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #0d0d0d;
    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: #2d2d2d;
}

/* Content Post (Doorways) */
.content-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.content-post p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.6em;
    text-align: justify;
}

.content-post h2 {
    border-left: 4px solid #e74c3c;
    padding-left: 16px;
    margin-top: 2.5em;
}

.content-post h3 {
    margin-top: 2em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #ecf0f1;
}

/* Links */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

a:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.content-post a {
    color: #c0392b;
    font-weight: 500;
    border-bottom: 1px solid #e74c3c;
}

.content-post a:hover {
    background: #fef5f5;
    padding: 2px 4px;
    margin: -2px -4px;
}

/* Buttons */
.btn, button, input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: #e74c3c;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    border-bottom: none;
}

.btn-secondary {
    background: #34495e;
}

.btn-secondary:hover {
    background: #2c3e50;
}

/* Lists */
ul, ol {
    margin-bottom: 1.8em;
    padding-left: 2em;
    color: #2d2d2d;
}

.content-post ul li,
.content-post ol li {
    margin-bottom: 0.8em;
    line-height: 1.7;
    color: #2d2d2d;
}

.content-post ul {
    list-style: none;
    padding-left: 0;
}

.content-post ul li {
    padding-left: 1.5em;
    position: relative;
}

.content-post ul li:before {
    content: "▸";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
    color: #2d2d2d;
}

th {
    background: #34495e;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: #ecf0f1;
}

/* Blockquotes */
blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    background: #ecf0f1;
    border-left: 5px solid #e74c3c;
    font-style: italic;
    color: #2d2d2d;
}

blockquote p {
    margin-bottom: 0;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    background: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d2d2d;
}

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

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

/* Live Chat */
.live-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff !important;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header {
    padding: 16px 20px;
    background: #34495e;
    color: #fff !important;
    font-weight: 600;
}

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

.chat-input {
    padding: 16px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    margin-bottom: 0;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover {
    border-bottom: none;
}

.logo svg {
    width: 50px;
    height: 50px;
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-info a {
    color: #2d2d2d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: #e74c3c;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #2d2d2d;
    font-weight: 500;
    padding: 8px 0;
}

nav a:hover {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .content-post {
        padding: 20px 16px;
    }
    
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }
    
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 12px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    blockquote {
        padding: 16px 20px;
        margin: 1.5em 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .content-post p {
        font-size: 16px;
    }
    
    .btn, button, input[type="submit"] {
        width: 100%;
        padding: 14px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

strong, b {
    font-weight: 700;
    color: #1a1a1a;
}

em, i {
    font-style: italic;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #c0392b;
    font-size: 0.9em;
}

pre {
    background: #2d2d2d;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2em 0;
}

pre code {
    background: none;
    color: #f8f9fa;
    padding: 0;
}

hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 3em 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.content-post img {
    margin: 2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
