/*
Theme Name: Axion Fabrication
Theme URI: https://axionfabrication.com/
Author: Purple Dotts
Author URI: https://purpledotts.com/
Description: Dynamic WordPress theme for Axion Fabrication, a metal fabrication company in Dubai. Services, projects and testimonials are managed as post types, all site-wide text, images and contact details are editable in the Customizer, and the contact form stores enquiries in the dashboard and emails them to the team. Demo content is imported automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axion
Tags: business, custom-menu, custom-logo, featured-images, theme-options, threaded-comments
*/

/* =========================================================
   WordPress-specific styles
   (design styles live in assets/css/style.css + pages.css)
   ========================================================= */

/* Admin bar offset for the fixed header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Custom logo image */
.logo .custom-logo { display: block; width: auto; max-height: 52px; }

/* Core helper classes */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; word-wrap: normal !important; }
.screen-reader-text:focus { position: fixed !important; top: 10px; left: 10px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 12px 20px; background: var(--white); color: var(--text); font-weight: 700; }
.alignleft { float: left; margin: 6px 28px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 28px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, figure.wp-block-image { max-width: 100%; margin-bottom: 24px; }
.wp-caption-text, .wp-element-caption, .gallery-caption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.sticky, .bypostauthor { position: relative; }

/* Editor content */
.entry-content > * + * { margin-top: 20px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 40px; margin-bottom: 4px; }
.entry-content h3 { font-size: 24px; }
.entry-content ul, .entry-content ol { padding-left: 22px; color: var(--text-2); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 8px; }
.entry-content a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-content blockquote { margin: 32px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--blue); font-size: 19px; font-weight: 600; color: var(--text); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line-dark); text-align: left; }
.entry-content pre { overflow-x: auto; padding: 18px; background: var(--ink); color: var(--steel); }
.entry-content::after { content: ""; display: table; clear: both; }
.content-narrow { max-width: 820px; }

/* Blog listing */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--white); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(7, 9, 12, .35); }
.post-card .card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 30px; flex: 1; }
.post-card-meta { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.post-card h2 { font-size: 21px; }
.post-card p { font-size: 15px; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; }
.post-featured { margin-bottom: 40px; }
.post-featured img { width: 100%; height: auto; }
.no-results { max-width: 640px; }
.no-results p { color: var(--muted); margin: 14px 0 26px; }

/* Pagination */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; background: var(--white); font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--blue); color: var(--white); }

/* Search form */
.search-form { display: flex; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line-dark); background: var(--white); font: inherit; }
.search-form .search-submit { height: 52px; padding: 0 24px; border: 0; background: var(--blue); color: var(--white); font-weight: 700; }

/* Comments */
.comments-area { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-dark); }
.comments-area .comment-list { margin-bottom: 40px; }
.comments-area .comment-list .children { padding-left: 28px; }
.comments-area .comment-body { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.comments-area .comment-meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.comments-area .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-dark); background: var(--white); font: inherit; }
.comment-form .submit { padding: 14px 26px; border: 0; background: var(--ink); color: var(--white); font-weight: 700; }

/* Honeypot field on enquiry forms */
.axion-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .alignleft, .alignright { float: none; margin: 0 0 20px; }
}
