/*
Theme Name: SwiftTrack Blue
Theme URI: https://example.com/swifttrack-blue
Author: SwiftTrack
Description: A clean, responsive blue-and-white WordPress theme designed to work with the SwiftTrack Shipment Tracking plugin and its [swifttrack] shortcode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: swifttrack-blue
*/

/* Theme styles are intentionally scoped to the theme shell. The SwiftTrack
   plugin keeps control of its own .swifttrack interface and styles. */
:root {
  --stb-blue: #173b67;
  --stb-blue-dark: #102e50;
  --stb-blue-soft: #eaf1f8;
  --stb-ink: #172b4d;
  --stb-muted: #64748b;
  --stb-line: #e5ebf2;
  --stb-bg: #f7f9fc;
  --stb-white: #fff;
  --stb-radius: 16px;
  --stb-shadow: 0 12px 34px rgba(23, 59, 103, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stb-bg);
  color: var(--stb-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--stb-blue); }
a:hover { color: var(--stb-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.stb-skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 9999;
  padding: 10px 14px; background: #fff; color: var(--stb-blue);
}
.stb-skip-link:focus { left: 10px; }
.stb-site { min-height: 100vh; display: flex; flex-direction: column; }
.stb-header {
  position: relative; z-index: 5; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--stb-line);
}
.stb-header-inner {
  width: min(1160px, calc(100% - 48px)); min-height: 78px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.stb-brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.stb-brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 12px; background: var(--stb-blue-soft); color: var(--stb-blue);
}
.stb-brand-mark svg { width: 23px; height: 23px; }
.stb-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.stb-site-title { color: var(--stb-blue); font-size: 20px; font-weight: 800; letter-spacing: -.55px; }
.stb-tagline { margin-top: 4px; color: #8491a3; font-size: 10px; letter-spacing: .75px; text-transform: uppercase; }
.stb-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.stb-nav a { color: #53647a; font-size: 13px; font-weight: 650; text-decoration: none; }
.stb-nav a:hover, .stb-nav .current-menu-item > a { color: var(--stb-blue); }
.stb-nav .menu-item-cta > a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 0 17px; border-radius: 9px; background: var(--stb-blue); color: #fff;
}
.stb-nav .menu-item-cta > a:hover { background: var(--stb-blue-dark); color: #fff; }
.stb-main { width: 100%; flex: 1; }
.stb-content-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 76px; }
.stb-page-card, .stb-post-card {
  background: #fff; border: 1px solid var(--stb-line); border-radius: var(--stb-radius);
  box-shadow: var(--stb-shadow); padding: clamp(24px, 5vw, 54px);
}
.stb-page-title, .stb-entry-title {
  margin: 0 0 18px; color: var(--stb-ink); font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15; letter-spacing: -1.4px;
}
.stb-entry-content > *:first-child { margin-top: 0; }
.stb-entry-content > *:last-child { margin-bottom: 0; }
.stb-entry-content p { color: #53647a; }
.stb-entry-content h2, .stb-entry-content h3 { color: var(--stb-ink); line-height: 1.25; }
.stb-entry-content img { border-radius: 12px; }
.stb-entry-content blockquote {
  margin: 24px 0; padding: 12px 20px; border-left: 3px solid #8eaccb;
  background: #f5f8fc; color: #53647a;
}
.stb-button, .stb-entry-content .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 20px; border: 0; border-radius: 9px; background: var(--stb-blue);
  color: #fff; font-weight: 700; text-decoration: none;
}
.stb-button:hover, .stb-entry-content .wp-block-button__link:hover { background: var(--stb-blue-dark); color: #fff; }
.stb-home-hero {
  position: relative; overflow: hidden; padding: clamp(52px, 8vw, 92px) 24px;
  background: radial-gradient(ellipse at 50% 0%, #eaf1f8 0, #f7f9fc 54%, #fff 100%);
  text-align: center;
}
.stb-home-inner { width: min(760px, 100%); margin: 0 auto; }
.stb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid #dce6f0; border-radius: 999px; background: #fff;
  color: var(--stb-blue); font-size: 10px; font-weight: 800; letter-spacing: 1.1px;
}
.stb-eyebrow:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5b8cbd; }
.stb-home-title {
  margin: 22px 0 12px; color: var(--stb-ink); font-size: clamp(38px, 6vw, 58px);
  font-weight: 800; line-height: 1.06; letter-spacing: -2.6px;
}
.stb-home-description { max-width: 550px; margin: 0 auto; color: var(--stb-muted); font-size: 16px; }
.stb-home-tracking { width: min(680px, calc(100% - 32px)); margin: -20px auto 64px; position: relative; z-index: 2; }
.stb-home-tracking .stb-page-card { padding: 0; overflow: hidden; }
.stb-home-tracking .stb-entry-content { padding: 0; }
.stb-home-below { width: min(920px, calc(100% - 48px)); margin: 0 auto 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stb-feature {
  padding: 22px; border: 1px solid var(--stb-line); border-radius: 14px; background: #fff;
}
.stb-feature-icon {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 13px;
  border-radius: 11px; background: var(--stb-blue-soft); color: var(--stb-blue);
}
.stb-feature h2 { margin: 0 0 6px; color: var(--stb-ink); font-size: 15px; }
.stb-feature p { margin: 0; color: var(--stb-muted); font-size: 12px; line-height: 1.65; }
.stb-footer { border-top: 1px solid var(--stb-line); background: #fff; }
.stb-footer-inner {
  width: min(1160px, calc(100% - 48px)); min-height: 68px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #8995a5; font-size: 11px;
}
.stb-footer a { color: #63758d; text-decoration: none; }
.stb-post-list { display: grid; gap: 18px; }
.stb-post-card { padding: 28px; }
.stb-post-card .stb-entry-title { font-size: 27px; }
.stb-pagination { margin-top: 30px; }
.stb-pagination .page-numbers { display: inline-block; margin-right: 6px; padding: 8px 12px; border: 1px solid var(--stb-line); border-radius: 8px; background: #fff; text-decoration: none; }
.stb-pagination .current { background: var(--stb-blue); color: #fff; }
.stb-404 { text-align: center; padding: 90px 20px; }
.stb-404 h1 { margin: 0 0 12px; font-size: clamp(40px, 7vw, 64px); color: var(--stb-blue); }
body.swifttrack-shortcode-page { background: #fff; }
body.swifttrack-shortcode-page .stb-header,
body.swifttrack-shortcode-page .stb-footer { display: none; }
body.swifttrack-shortcode-page .stb-content-wrap { width: 100%; max-width: none; padding: 0; }
body.swifttrack-shortcode-page .stb-page-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
body.swifttrack-shortcode-page .stb-page-title { display: none; }
body.swifttrack-shortcode-page .stb-site { min-height: 0; }
:focus-visible { outline: 3px solid #9bb6d3; outline-offset: 3px; }
@media (max-width: 720px) {
  .stb-header-inner { width: min(100% - 30px, 1160px); min-height: 70px; gap: 12px; }
  .stb-nav ul { gap: 14px; }
  .stb-nav a { font-size: 11px; }
  .stb-nav .menu-item-cta > a { min-height: 38px; padding: 0 12px; }
  .stb-content-wrap { width: calc(100% - 28px); padding: 30px 0 48px; }
  .stb-home-below { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .stb-footer-inner { width: calc(100% - 30px); flex-direction: column; justify-content: center; padding: 16px 0; text-align: center; gap: 4px; }
}
@media (max-width: 440px) {
  .stb-tagline { display: none; }
  .stb-site-title { font-size: 18px; }
  .stb-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .stb-nav ul { gap: 10px; }
  .stb-nav a { font-size: 10px; }
}
