/* House of Comil - Commercial Kitchen Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ed8936;
    --primary-dark: #dd6b20;
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
    background: var(--gray-900);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo i { color: var(--primary); font-size: 1.5rem; }

.logo span { color: var(--primary); }

.nav { display: flex; gap: 2rem; }

.nav a {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ed8936" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Category Pills */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.category-pill {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--gray-700);
}

.category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content { padding: 1.5rem; }

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.article-meta i { margin-right: 0.25rem; }

.article-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--primary); }

.article-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover { gap: 0.75rem; }

/* Featured Article */
.featured-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.featured-article img {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.featured-content h2 a { color: inherit; }
.featured-content h2 a:hover { color: var(--primary); }

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    text-align: center;
}

.newsletter h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.newsletter p { color: var(--gray-400); max-width: 500px; margin: 0 auto 2rem; }

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.newsletter-form button:hover { background: var(--primary-dark); }

/* Article Page */
.article-page { padding: 3rem 0; }

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.article-header .article-meta {
    justify-content: center;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
}

.article-content h2:first-of-type { margin-top: 0; }

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.article-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.article-content strong { color: var(--gray-900); }

/* Author Box */
.author-box {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.author-bio {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

.related-card:hover { transform: translateY(-2px); }

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card-content { padding: 1rem; }

.related-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}

.related-card h4 a { color: inherit; }
.related-card h4 a:hover { color: var(--primary); }

/* Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin: 3rem 0;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
    color: var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-widget a:hover { color: var(--primary); }

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.popular-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.popular-post h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-800);
}

.popular-post h4 a { color: inherit; }
.popular-post h4 a:hover { color: var(--primary); }

.popular-post span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Contact Page */
.contact-section {
    max-width: 900px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.15);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-item p { color: var(--gray-600); font-size: 0.95rem; }

/* Static Pages */
.page-content {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.page-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}

.page-content p {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--gray-700);
}

.page-content li { margin-bottom: 0.5rem; }

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--primary); }

/* Utility */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.5rem; }

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.sitemap-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sitemap-col ul { list-style: none; }

.sitemap-col li { margin-bottom: 0.5rem; }

.sitemap-col a {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.sitemap-col a:hover { color: var(--primary); }

/* Mobile */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gray-900);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .nav.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-article img { min-height: 250px; }
    .articles-grid { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .article-header h1 { font-size: 1.75rem; }
    .article-content { padding: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.6rem; }
    .categories { gap: 0.4rem; }
    .category-pill { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .page-content { padding: 1.5rem; }
    .section-title { font-size: 1.5rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-card, .featured-article { animation: fadeIn 0.5s ease-out; }

/* Print */
@media print {
    .header, .footer, .newsletter, .related-posts, .sidebar { display: none; }
    .article-content { box-shadow: none; }
}
