/*
Theme Name: Your Site Name
Theme URI: https://example.com
Author: TMJ Theme Builder
Version: 1.0.0
Description: Custom theme built with TMJ Theme Builder Pro
Tags: custom, responsive, flexible
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
  --primary:       #ff6600;
  --secondary:     #1a1a1a;
  --text:          #1a1a1a;
  --bg:            #fbfbfb;
  --heading-font:  'Montserrat', sans-serif;
  --body-font:     'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--heading-font); line-height: 1.2; color: #0a3d62; }
a { color: var(--primary); text-decoration: none; transition: all .2s; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 32px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--body-font); border: none; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 1; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary { background: var(--secondary); }

/* Navigation */
#site-header { position: sticky; top: 0; z-index: 1000; background: #0a3d62; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
#site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-branding a { font-family: var(--heading-font); font-weight: 800; font-size: 1.4rem; color: #fff; text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .9rem; text-decoration: none; }
.nav-menu a:hover { color: var(--primary); opacity: 1; }

/* Hero */
.hero-section { min-height: 550px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-section .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-section .hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-section .hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; margin-bottom: 20px; }
.hero-section p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 30px; max-width: 600px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #f0f4ff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.card-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; background: #0dcaf018; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .9rem; color: #666; line-height: 1.6; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #f0f4ff; transition: transform .2s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: .875rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.blog-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: #94a3b8; margin-bottom: 10px; flex-wrap: wrap; }
.blog-cat { background: #0dcaf018; color: #0dcaf0; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.read-more { color: #0dcaf0; font-weight: 700; font-size: .875rem; }

/* Single post */
.single-post { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.single-post h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 20px; }
.single-post .post-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.single-post .post-content { font-size: 1.05rem; line-height: 1.85; color: #374151; }
.single-post .post-content p { margin-bottom: 20px; }
.single-post .post-content h2 { font-size: 1.6rem; margin: 32px 0 14px; }
.single-post .post-content h3 { font-size: 1.3rem; margin: 24px 0 10px; }
.single-post .post-content img { border-radius: 10px; margin: 24px 0; }
.single-post .post-content blockquote { border-left: 4px solid #0dcaf0; padding: 14px 20px; background: #0dcaf008; margin: 24px 0; font-style: italic; color: #555; border-radius: 0 8px 8px 0; }
.author-box { display: flex; align-items: center; gap: 16px; padding: 24px; background: #f8fafc; border-radius: 12px; margin-top: 32px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #0dcaf022; flex-shrink: 0; }
.share-buttons { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.share-btn { padding: 8px 18px; border-radius: 20px; font-size: .8rem; font-weight: 700; cursor: pointer; border: 1px solid #e2e8f0; background: #fff; color: #374151; }

/* Related posts */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Contact form — all styles */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }
.contact-info { background: linear-gradient(135deg, #0dcaf0, #0a3d62); border-radius: 14px; padding: 32px; color: #fff; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; font-size: .9rem; opacity: .9; }
/* CF7 / WPForms / Fluent Forms shared styles */
.wpcf7-form input, .wpcf7-form select, .wpcf7-form textarea,
.wpforms-field input, .wpforms-field select, .wpforms-field textarea,
.ff-el-input input, .ff-el-input select, .ff-el-input textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-family: var(--body-font); font-size: .9rem; outline: none;
  transition: border .15s; margin-bottom: 12px; background: #f8fafc; box-sizing: border-box;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus,
.wpforms-field input:focus, .wpforms-field textarea:focus,
.ff-el-input input:focus, .ff-el-input textarea:focus { border-color: #0dcaf0; background: #fff; }
.wpcf7-form textarea, .wpforms-field textarea, .ff-el-input textarea { resize: vertical; min-height: 120px; }
.wpcf7-submit, .wpforms-submit, .ff-btn-submit {
  width: 100%; padding: 12px; background: #0dcaf0; color: #fff; border: none;
  border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer;
  font-family: var(--body-font); transition: opacity .2s;
}
.wpcf7-submit:hover, .wpforms-submit:hover, .ff-btn-submit:hover { opacity: .88; }
.wpcf7-response-output { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .875rem; }
.wpcf7-mail-sent-ok { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.wpcf7-validation-errors { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--heading-font); font-size: 3rem; font-weight: 800; color: #0a3d62; line-height: 1; }
.stat-label { font-size: .875rem; color: #666; margin-top: 6px; }

/* Footer */
#site-footer { background: #0a3d62; color: rgba(255,255,255,0.75); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; opacity: .7; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-family: var(--heading-font); font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-links a:hover { color: var(--primary); opacity: 1; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 1rem; }

/* Breadcrumb */
.breadcrumb { padding: 14px 0; font-size: .85rem; color: #94a3b8; }
.breadcrumb a { color: #0dcaf0; }
.breadcrumb span { margin: 0 8px; }

/* Search form */
.search-form { display: flex; gap: 0; max-width: 500px; margin: 24px auto; }
.search-form input { flex: 1; padding: 12px 18px; border: 2px solid #e2e8f0; border-right: none; border-radius: 8px 0 0 8px; font-size: .95rem; outline: none; }
.search-form button { padding: 12px 24px; background: #0dcaf0; color: #fff; border: none; border-radius: 0 8px 8px 0; font-weight: 700; cursor: pointer; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #e2e8f0; font-weight: 600; font-size: .875rem; color: #374151; }
.pagination .current { background: #0dcaf0; color: #fff; border-color: #0dcaf0; }

/* Responsive */
@media (max-width: 768px) {
  .cards-grid, .blog-grid, .related-grid, .stats-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 2rem; }
  .nav-menu { display: none; }
  .single-post { padding: 40px 16px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .7s ease forwards; }

/* Ensure consistent background - no white gaps between AI blocks */
#site-main { background: #fbfbfb; }
.ai-custom-block { background: #fbfbfb; }
