/*
Theme Name: Fried Engineers
Theme URI: https://friedengineers.com/
Author: Fried Engineers
Author URI: https://friedengineers.com/
Description: A clean starter WordPress theme for Fried Engineers with dynamic header, footer, menus, pages, posts, archives, and responsive design. Custom post types are intentionally not included in the theme.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
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: fried-engineers
Tags: custom-logo, custom-menu, blog, education, portfolio, threaded-comments, translation-ready
*/

/* ============ RESET & ROOT ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --charcoal: #1D2226;
  --yellow: #FCD206;
  --yellow-light: #FFC872;
  --purple: #752092;
  --white: #FFFFFF;
  --bg: #F8F8F8;
  --bg2: #F2F2F0;
  --border: #E4E4E0;
  --text-muted: #6B7280;
  --text-dark: #1D2226;
  --danger: #C2410C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-main: 'Outfit', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 20px rgba(29,34,38,0.08);
  --shadow-lg: 0 8px 48px rgba(29,34,38,0.14);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  z-index: 9999; background: var(--charcoal); color: var(--white);
  padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-main); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px; letter-spacing: 0.3px;
}
.tag-yellow { background: var(--yellow); color: var(--charcoal); }
.tag-purple { background: rgba(117,32,146,0.1); color: var(--purple); border: 1px solid rgba(117,32,146,0.2); }
.tag-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); }
.tag-dark { background: var(--charcoal); color: var(--white); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(252,210,6,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(252,210,6,0); }
  100% { box-shadow: 0 0 0 0 rgba(252,210,6,0); }
}
.anim-fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.topbar span { color: var(--yellow); font-weight: 700; }

/* ============ HEADER / NAV ============ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,248,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  min-height: 68px; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-svg { width: 40px; height: 40px; flex: 0 0 40px; }
.custom-logo { max-width: 180px; max-height: 52px; width: auto; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .fried {
  font-family: var(--font-main); font-weight: 800;
  font-size: 15px; color: var(--charcoal); letter-spacing: -0.3px;
}
.logo-text .engineers {
  font-family: var(--font-main); font-weight: 800;
  font-size: 15px; color: var(--yellow); letter-spacing: -0.3px;
  position: relative;
}
.logo-text .engineers::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background: var(--yellow);
}
.nav-menu-wrap { display: flex; align-items: center; gap: 14px; }
.nav-links, .nav-links ul {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links .current_page_item > a {
  color: var(--charcoal); background: var(--bg2); font-weight: 600;
}
.nav-links .sub-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px; padding: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); z-index: 20;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu a { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-family: var(--font-main); font-size: 14px; font-weight: 600;
  color: var(--charcoal); background: transparent; border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.btn-primary {
  font-family: var(--font-main); font-size: 14px; font-weight: 700;
  color: var(--charcoal); background: var(--yellow); border: none;
  padding: 9px 22px; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; animation: pulse-ring 2.5s infinite;
}
.btn-primary:hover { background: var(--yellow-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252,210,6,0.4); }
.menu-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--charcoal); cursor: pointer; align-items: center; justify-content: center;
}

/* ============ TICKER ============ */
.ticker-bar {
  background: var(--yellow);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(29,34,38,0.08);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-main); font-size: 13px; font-weight: 700;
  color: var(--charcoal); padding: 0 32px;
}
.ticker-item::after { content: '⚡'; font-size: 14px; }

/* ============ MAIN CONTENT ============ */
.site-main { min-height: 50vh; }
.content-wrap { max-width: 920px; margin: 0 auto; padding: 10px 10px; }
.content-wrap.wide { max-width: 1300px; }
.page-header { margin-bottom: 36px; text-align: left; }
.archive-description { margin-top: 10px; color: var(--text-muted); font-family: var(--font-body); line-height: 1.7; }
.entry-title, .page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-weight: 900;
  color: var(--charcoal);
}
.entry-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-body);
}
.entry-meta a { color: var(--purple); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(29,34,38,0.82);
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-main);
  color: var(--charcoal);
  line-height: 1.2;
  margin-top: 1.8em;
}
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 24px; }
.entry-content p { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content a { color: var(--purple); font-weight: 700; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 5px solid var(--yellow);
  background: var(--white);
  padding: 18px 24px;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow);
}
.entry-content table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 12px; text-align: left; }
.entry-content th { background: var(--bg2); }
.wp-block-image img, .post-thumbnail img { border-radius: var(--radius); box-shadow: var(--shadow); }
.post-thumbnail { margin: 0 0 28px; }
.alignwide { max-width: 1100px; margin-left: calc(50% - 550px); margin-right: calc(50% - 550px); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ============ BLOG / CARDS ============ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.post-card-image img { width: 100%; height: 210px; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.post-card-content { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-title {
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.post-card-title a { text-decoration: none; color: var(--charcoal); }
.post-card-title a:hover { color: var(--purple); }
.post-card-excerpt { font-family: var(--font-body); color: var(--text-muted); line-height: 1.7; font-size: 15px; }
.read-more { margin-top: auto; color: var(--purple); font-weight: 800; text-decoration: none; }
.read-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.pagination, .post-navigation { margin-top: 42px; }
.nav-links.pagination, .pagination .nav-links {
  display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.page-numbers {
  min-width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); text-decoration: none; background: var(--white);
  font-weight: 700; color: var(--charcoal);
}
.page-numbers.current, .page-numbers:hover { background: var(--yellow); border-color: var(--yellow); }

/* ============ COMMENTS ============ */
.comments-area {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.comments-title, .comment-reply-title { font-family: var(--font-main); margin-bottom: 18px; }
.comment-list { list-style: none; }
.comment-list li { padding: 18px 0; border-top: 1px solid var(--border); }
.comment-list li:first-child { border-top: 0; }
.comment-form input, .comment-form textarea, .search-form input[type="search"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--white);
}
.comment-form input[type="submit"], .search-form input[type="submit"] {
  width: auto; border: none; background: var(--yellow); color: var(--charcoal);
  font-weight: 800; padding: 12px 22px; border-radius: 10px; cursor: pointer;
}
.search-form { display: flex; gap: 8px; margin-top: 20px; }
.search-form label { flex: 1; }

/* ══════════════════════════════════════════════════════════
   FOOTER  ·  ft-* namespace
   ══════════════════════════════════════════════════════════ */

.ft-footer {
  background: #12111c;
  background-image:
    radial-gradient(ellipse 70% 55% at 5% 0%, rgba(117,32,146,.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 100%, rgba(252,210,6,.05) 0%, transparent 60%);
  color: #fff;
  padding-top: 64px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.ft-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.1fr;
  gap: 48px;
}

/* ── Brand column ─────────────────────────────────── */
.ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 16px;
}

.ft-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(252,210,6,.15), rgba(117,32,146,.2));
  border: 1px solid rgba(252,210,6,.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ft-logo-text {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 18px; font-weight: 900; color: #fff; line-height: 1;
}
.ft-logo-text strong { color: var(--yellow, #fcd206); }

.ft-logo .ft-custom-logo {
  display: block;
  max-width: 160px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
}

.ft-tagline {
  font-size: 13.5px; color: rgba(255,255,255,.52);
  line-height: 1.72; margin: 0 0 16px; max-width: 300px;
}

.ft-company-badge {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(252,210,6,.35);
  color: rgba(252,210,6,.8);
  font-size: 12px; font-weight: 800; letter-spacing: .2px;
  margin-bottom: 22px;
}

.ft-contact-list { display: flex; flex-direction: column; gap: 12px; }

.ft-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: 13.5px; line-height: 1.55;
  text-decoration: none; transition: color .15s;
}
a.ft-contact-item:hover { color: rgba(255,255,255,.9); }

.ft-contact-icon { flex-shrink: 0; color: rgba(255,255,255,.3); margin-top: 2px; }

/* ── Column headings ──────────────────────────────── */
.ft-col-head {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 11.5px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--yellow, #fcd206); margin-bottom: 20px;
}
.ft-col-head--purple { color: #b86cd8; }

/* ── Links list ───────────────────────────────────── */
.ft-links {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}

.ft-links li { display: flex; align-items: flex-start; gap: 9px; }

.ft-links li::before {
  content: '•'; color: var(--yellow, #fcd206);
  font-size: 14px; line-height: 1.6; flex-shrink: 0;
}

.ft-links a {
  font-size: 14px; color: rgba(255,255,255,.62);
  text-decoration: none; line-height: 1.6; transition: color .15s;
}
.ft-links a:hover { color: #fff; }

/* ── CTA card ─────────────────────────────────────── */
.ft-cta-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 20px;
}

.ft-cta-card p {
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px; line-height: 1.45;
}

.ft-cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--yellow, #fcd206);
  color: var(--charcoal, #1d2226);
  font-size: 13px; font-weight: 900; text-decoration: none;
  transition: background .15s, transform .15s, gap .15s;
}
.ft-cta-btn:hover { background: #e8be00; gap: 8px; transform: translateY(-1px); }

/* ── Social icons ─────────────────────────────────── */
.ft-socials { display: flex; gap: 10px; margin-bottom: 14px; }

.ft-social-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.ft-social-btn:hover {
  background: var(--yellow, #fcd206);
  border-color: var(--yellow, #fcd206);
  color: var(--charcoal, #1d2226);
}

/* ── WhatsApp card ────────────────────────────────── */
.ft-wa-card {
  display: flex; align-items: center; gap: 12px;
  background: #15803d; border-radius: 12px;
  padding: 13px 16px; text-decoration: none;
  margin-bottom: 12px; transition: background .15s;
}
.ft-wa-card:hover { background: #166534; }

.ft-wa-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}

.ft-wa-label { display: block; font-size: 14px; font-weight: 900; color: #fff; line-height: 1.2; }
.ft-wa-num   { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.4; }

/* ── Cities card ──────────────────────────────────── */
.ft-cities-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 14px 16px;
}

.ft-cities-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .9px;
  color: rgba(255,255,255,.38); margin-bottom: 7px;
}

.ft-cities-text { font-size: 13px; color: rgba(255,255,255,.56); line-height: 1.65; margin: 0; }

/* ── Bottom bar ───────────────────────────────────── */
.ft-bottom-wrap { border-top: 1px solid rgba(255,255,255,.07); }

.ft-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.ft-copy { font-size: 13px; color: rgba(255,255,255,.3); margin: 0; }

.ft-bottom-links { display: flex; align-items: center; }

.ft-bottom-links a {
  font-size: 13px; color: rgba(255,255,255,.42);
  text-decoration: none; padding: 0 10px; transition: color .15s;
}
.ft-bottom-links a:hover { color: #fff; }
.ft-bottom-links span { color: rgba(255,255,255,.16); font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .site-nav { padding-left: 20px; padding-right: 20px; }
  .menu-toggle { display: inline-flex; }
  .nav-menu-wrap {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(248,248,248,0.98);
    border-bottom: 1px solid var(--border);
    padding: 18px 20px 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open .nav-menu-wrap { display: flex; }
  .nav-links, .nav-links ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { display: flex; width: 100%; }
  .nav-links .sub-menu {
    position: static; display: block; min-width: 0; box-shadow: none;
    background: transparent; border: 0; padding: 4px 0 4px 14px;
  }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions a { justify-content: center; }
}

@media (max-width: 768px) {
  .container, .content-wrap { padding-left: 10px; padding-right: 10px; }
  .content-wrap { padding-top: 10px; padding-bottom: 10px; }
  .entry-title, .page-title { letter-spacing: -1px; }
  .posts-grid { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px 44px; }
  .ft-brand { max-width: 100%; }
  .ft-bottom { padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .search-form { flex-direction: column; }
  .search-form input[type="submit"] { width: 100%; }
}

@media (max-width: 480px) {
  .topbar { font-size: 12px; }
  .site-nav { padding-left: 14px; padding-right: 14px; }
  .logo-svg { width: 36px; height: 36px; flex-basis: 36px; }
  .ticker-item { padding: 0 22px; }
}


/* ============ PERMANENT HEADER FIX ============ */

.site-header {
  position: relative;
  z-index: 999;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  padding-left: 40px;
  padding-right: 40px;
}

.nav-inner {
  width: 100%;
  max-width: 1240px;
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  min-width: 0;
  line-height: 1;
  text-decoration: none;
}

.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.logo-svg {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.logo-text .fried,
.logo-text .engineers {
  font-size: 16px;
}

.nav-menu-wrap {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.nav-links,
.nav-links ul {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links a {
  white-space: nowrap;
}

.nav-actions {
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-links a {
    padding-left: 10px;
    padding-right: 10px;
  }

  .custom-logo {
    max-width: 210px;
    max-height: 58px;
  }
}

@media (max-width: 840px) {
  .site-nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 70px;
    position: relative;
  }

  .logo {
    max-width: calc(100vw - 110px);
  }

  .custom-logo {
    max-width: 210px;
    max-height: 54px;
  }

  .menu-toggle {
    justify-self: end;
  }

  .nav-menu-wrap {
    justify-self: stretch;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-links,
  .nav-links ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .custom-logo {
    max-width: 170px;
    max-height: 48px;
  }
}


/* ============ SERVICES CPT TEMPLATES ============ */

.fe-service-archive {
  background: var(--bg);
}

.service-archive-header {
  max-width: 820px;
}

.service-archive-header .page-title {
  margin-top: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.service-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.service-card-title {
  font-family: var(--font-main);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.service-card-title a {
  color: var(--charcoal);
  text-decoration: none;
}

.service-card-title a:hover {
  color: var(--purple);
}

.service-card-excerpt {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.single-service-header {
  margin-bottom: 30px;
}

.single-service-header .entry-title {
  margin-top: 16px;
}

.service-back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

.service-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-service-excerpt {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-featured-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.service-cta-box {
  margin-top: 50px;
  padding: 32px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.service-cta-box h2 {
  font-family: var(--font-main);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.service-cta-box p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-content,
  .service-cta-box {
    padding: 22px;
  }
}
