/*
Theme Name: SmartFab
Theme URI: https://www.smartfabsystems.com/
Author: SmartFab Systems
Author URI: https://www.smartfabsystems.com/
Description: WordPress conversion of the SmartFab Systems static website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: smartfab
*/

body {
  margin: 0;
}

:root {
  --sf-navy: #0D1B2E;
  --sf-navy-2: #14253A;
  --sf-blue: #1E2E5C;
  --sf-line: #EAECF0;
  --sf-muted: #525A6A;
  --sf-soft: #F8F9FC;
  --sf-text: #1A2130;
  --sf-white: #FFFFFF;
}

body {
  color: var(--sf-text);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.7;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sf-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sf-white);
  border-bottom: 1px solid var(--sf-line);
}

.sf-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sf-navy);
  text-decoration: none;
}

.sf-brand img,
.sf-brand .custom-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.sf-brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.sf-brand small {
  display: block;
  color: #8A90A0;
  font-size: .68rem;
  letter-spacing: .04em;
}

.sf-primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sf-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--sf-text);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.sf-menu a:hover,
.sf-menu .current-menu-item > a {
  background: #EEF0F9;
  color: var(--sf-blue);
}

.sf-header-cta,
.sf-button,
.sf-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--sf-blue);
  color: var(--sf-white);
  font-weight: 700;
  text-decoration: none;
}

.sf-header-cta {
  padding: 10px 18px;
  font-size: .85rem;
}

.sf-button {
  padding: 11px 18px;
}

.sf-main {
  padding-top: 64px;
  padding-bottom: 80px;
}

.sf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.sf-readable {
  max-width: 820px;
}

.sf-archive-header {
  margin-bottom: 36px;
  padding: 36px;
  border-radius: 12px;
  background: var(--sf-soft);
  border: 1px solid var(--sf-line);
}

.sf-archive-header h1,
.sf-page-title {
  margin: 0 0 12px;
  color: var(--sf-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.sf-archive-header p,
.sf-archive-description {
  color: var(--sf-muted);
}

.sf-post-list {
  display: grid;
  gap: 24px;
}

.sf-card {
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: var(--sf-white);
}

.sf-card-media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.sf-card-body {
  padding: 26px;
}

.sf-card-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.sf-card-title a {
  color: var(--sf-navy);
  text-decoration: none;
}

.sf-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--sf-muted);
  font-size: .82rem;
}

.sf-entry-meta a {
  color: var(--sf-blue);
  text-decoration: none;
}

.sf-card-excerpt {
  color: var(--sf-muted);
}

.sf-read-more {
  margin-top: 10px;
  padding: 9px 14px;
  font-size: .85rem;
}

.sf-entry {
  background: var(--sf-white);
}

.sf-entry-header {
  margin-bottom: 28px;
}

.sf-featured-image {
  margin: 0 0 28px;
}

.sf-featured-image img,
.sf-attachment img {
  border-radius: 8px;
}

.sf-content > * {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.sf-content a {
  color: var(--sf-blue);
}

.sf-content img {
  max-width: 100%;
  height: auto;
}

.sf-content blockquote {
  margin-left: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--sf-blue);
  background: var(--sf-soft);
}

.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.sf-tags a {
  padding: 5px 10px;
  border-radius: 99px;
  background: #EEF0F9;
  color: var(--sf-blue);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

.sf-sidebar {
  display: grid;
  gap: 18px;
}

.sf-widget {
  padding: 22px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: var(--sf-soft);
}

.sf-widget-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--sf-navy);
}

.sf-search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.sf-search-form label {
  flex: 1;
}

.sf-search-field,
.sf-content input,
.sf-content textarea,
.sf-comments input,
.sf-comments textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #D0D4DC;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.sf-main .nav-links,
.sf-main .post-navigation,
.sf-main .comments-navigation,
.sf-main .pagination {
  margin-top: 32px;
}

.sf-main .nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.sf-main .nav-links a,
.page-numbers {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  color: var(--sf-blue);
  text-decoration: none;
  font-weight: 700;
}

.page-numbers.current {
  background: var(--sf-blue);
  color: var(--sf-white);
}

.sf-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--sf-line);
}

.sf-comment-list {
  padding-left: 24px;
}

.sf-comment-list .comment-body {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
}

.sf-empty {
  padding: 32px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: var(--sf-soft);
}

.sf-site-footer {
  background: var(--sf-navy);
  color: rgba(255, 255, 255, .76);
  padding: 48px 0 22px;
}

.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.sf-site-footer h2 {
  margin: 0 0 12px;
  color: var(--sf-white);
  font-size: 1rem;
}

.sf-site-footer a {
  color: var(--sf-white);
  text-decoration: none;
}

.sf-brand-footer {
  color: var(--sf-white);
}

.sf-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
}

@media (max-width: 900px) {
  .sf-header-inner,
  .sf-menu {
    align-items: flex-start;
  }

  .sf-header-inner {
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .sf-primary-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .sf-layout,
  .sf-footer-grid {
    grid-template-columns: 1fr;
  }

  .sf-header-cta {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  .sf-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sf-archive-header,
  .sf-card-body {
    padding: 22px;
  }

  .sf-search-form {
    flex-direction: column;
  }
}
