/*
Theme Name: Digitizing Crew
Theme URI: https://digitizingcrew.com/
Author: Digitizing Crew
Author URI: https://digitizingcrew.com/
Description: Elementor-ready WordPress theme for Digitizing Crew — professional embroidery digitizing and vector tracing. Full-width page templates with no forced sidebars, Elementor Pro Theme Builder location support, and a complete design system (burnt-orange primary, deep-green dark sections, Poppins/Inter). Ships with importable Elementor page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitizing-crew
Tags: business, portfolio, one-column, two-columns, custom-menu, custom-logo, custom-colors, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

/*  The full design system lives in assets/css/theme.css and is enqueued by
    functions.php. This file carries the theme header (required by WordPress)
    plus WordPress-specific and Elementor-specific rules.
    ------------------------------------------------------------------------ */

/* --- WordPress core classes ------------------------------------------- */
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { max-width: 1220px; margin-inline: auto; }
.alignfull   { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
}
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
  margin: -1px; padding: 0;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none;
  background: #fff; color: var(--ink);
  display: block; font-size: .9rem; font-weight: 600;
  height: auto; width: auto; left: 12px; top: 12px;
  padding: 12px 22px; z-index: 100000;
  border-radius: 0 0 var(--r) var(--r); text-decoration: none;
}
.sticky { position: relative; }
.bypostauthor { display: block; }

/* --- Editor / block content inside a page ----------------------------- */
.entry-content > * {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.entry-content > .alignfull { max-width: none; padding-inline: 0; }
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h2,
.entry-content h3 { margin-top: 2rem; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: .25rem 0 .25rem 1.25rem;
  font-size: 1.06rem;
  color: var(--ink);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
.entry-content th { background: var(--surface-alt); font-family: var(--font-head); }

/* When Elementor renders the page, drop the theme's content constraints
   so Elementor's own section widths take over completely. */
.elementor-page .entry-content > * {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.elementor-page .entry-content > * + * { margin-top: 0; }

/* --- Post / archive cards -------------------------------------------- */
.post-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-alt); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; margin-bottom: 10px;
}
.post-card h2, .post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card p { color: var(--text-muted); font-size: .94rem; }

/* --- Pagination ------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--ink); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Widgets ---------------------------------------------------------- */
.widget { margin-bottom: 34px; }
.widget-title {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-100);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.widget ul li:last-child { border-bottom: 0; }

/* --- 404 -------------------------------------------------------------- */
.error404-code {
  font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700; line-height: 1; color: var(--brand-100);
}
