/*
Theme Name: TradeComply
Theme URI: https://tariffwolf.com
Author: Surajit Roy
Author URI: https://isurajitroy.com
Description: A clean, professional trade compliance WordPress theme. Navy blue and orange design. AdSense-ready, lightning-fast, no plugin dependency.
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: trade-comply
Tags: blog, trade, compliance, professional, two-columns, right-sidebar, custom-menu, featured-images, custom-header
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --navy:        #0D1B2A;
  --navy-800:    #1a2f4a;
  --navy-700:    #243f61;
  --navy-600:    #2d5078;
  --orange:      #F97316;
  --orange-600:  #EA6C10;
  --orange-100:  #FFF7ED;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --border:      #E2E8F0;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 36px rgba(0,0,0,.13);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  all .2s ease;
  --container:   1200px;
  --header-h:    72px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-600); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; line-height: 1.25;
  color: var(--navy); letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 1rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.site-main { padding-top: 72px; }
@media (max-width: 768px) { .site-main { padding-top: 64px; } }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-subtitle {
  color: var(--text-muted); max-width: 580px;
  margin: 0 auto; font-size: 1.0625rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600;
  transition: var(--transition); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover {
  background: var(--orange-600); border-color: var(--orange-600); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,.4);
}
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* =============================================
   BADGES / CATEGORY LABELS
   ============================================= */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
}
.badge-case-study   { background: rgba(249,115,22,.12); color: var(--orange-600); }
.badge-insights     { background: rgba(13,27,42,.08);   color: var(--navy-700); }
.badge-default      { background: var(--gray-100);      color: var(--gray-700); }

/* =============================================
   SITE HEADER
   ============================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #0D1B2A; height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
/* Push header down below WP admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.hdr-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px;
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 16px;
}

/* Logo */
.hdr-logo { display: block; flex-shrink: 0; line-height: 0; }
.hdr-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

/* Desktop nav */
.hdr-nav { display: flex; align-items: center; }
.hdr-nav ul { display: flex; flex-direction: row; align-items: center; list-style: none; margin: 0; padding: 0; }
.hdr-nav ul li a {
  display: block; padding: 8px 14px; color: #fff;
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  border-radius: 6px; white-space: nowrap; transition: color .15s;
}
.hdr-nav ul li a:hover,
.hdr-nav ul li.current-menu-item > a { color: #F97316; }

/* Right icons */
.hdr-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* LinkedIn */
.hdr-li {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.hdr-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.hdr-li svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger — hidden on desktop */
.hdr-toggle {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 36px; height: 36px;
  background: rgba(255,255,255,.08); border: none; border-radius: 6px; cursor: pointer;
}
.hdr-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .22s; }
.hdr-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(0,7px); }
.hdr-toggle.active span:nth-child(2) { opacity: 0; }
.hdr-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(0,-7px); }

/* ── MOBILE ≤768px ── */
@media (max-width: 768px) {
  .site-header { height: 64px; }
  .hdr-inner    { height: 64px; }
  .hdr-toggle   { display: flex; }
  .hdr-li       { display: none; }    /* LinkedIn hidden on mobile */

  /* Nav hidden by default, shown when .open added by JS */
  .hdr-nav {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: #0D1B2A;
    border-top: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    z-index: 999;
  }
  .admin-bar .hdr-nav { top: 96px; }
  .hdr-nav.open { display: flex; }
  .hdr-nav ul { flex-direction: column; width: 100%; margin: 0; padding: 0; }
  .hdr-nav ul li { width: 100%; }
  .hdr-nav ul li a {
    padding: 14px 20px; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1rem;
  }
  .hdr-nav ul li:last-child a { border-bottom: none; }
}

/* =============================================
   HERO — HOMEPAGE
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162d4a 55%, #1a3858 100%);
  padding: 110px 0 90px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -5%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(249,115,22,.07) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -2%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(249,115,22,.045) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-quote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-quote svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.hero-quote p {
  font-size: .9375rem;
  font-style: italic;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  margin: 0;
  border-left: 2px solid var(--orange);
  padding-left: 14px;
}
.hero-title {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
}
/* Surajit Roy — ORANGE */
.hero-title-white  { color: var(--orange) !important; display: block; }
/* Trade Compliance Professional — WHITE */
.hero-title-orange { color: #FFFFFF !important; display: block; }
.hero-subtitle { color: rgba(255,255,255,.72); font-size: 1.125rem; margin-bottom: 36px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   COVER CARDS — HOMEPAGE "WHAT WE COVER"
   ============================================= */
.cover-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.cover-card {
  padding: 36px; border-radius: var(--radius-lg);
  text-decoration: none; transition: var(--transition);
  position: relative; overflow: hidden;
}
.cover-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover-card.case-study {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
}
.cover-card.insights {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
}
.cover-card-icon {
  width: 52px; height: 52px; background: rgba(255,255,255,.15);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px; font-size: 1.5rem;
}
.cover-card-title { color: var(--white); font-size: 1.375rem; margin-bottom: 10px; }
.cover-card-desc { color: rgba(255,255,255,.78); font-size: .9375rem; margin: 0; }
.cover-card-arrow {
  position: absolute; bottom: 24px; right: 24px;
  width: 34px; height: 34px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: 1rem;
  transition: var(--transition);
}
.cover-card:hover .cover-card-arrow { background: rgba(255,255,255,.28); }

/* =============================================
   BLOG LIST — POST CARDS
   ============================================= */
.posts-page-hero {
  background: var(--navy); padding: 64px 0 52px; text-align: center;
}
.posts-page-hero h1 { color: var(--white); margin-bottom: 10px; }
.posts-page-hero p { color: rgba(255,255,255,.62); margin: 0; }
.breadcrumb-nav {
  font-size: .8125rem; color: rgba(255,255,255,.48);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px; justify-content: center;
}
.breadcrumb-nav a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--orange); }

.posts-wrapper { padding: 56px 0; background: var(--gray-50); }
.category-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.category-tab {
  padding: 8px 20px; border-radius: 24px; font-size: .875rem; font-weight: 500;
  background: var(--white); color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border); transition: var(--transition);
}
.category-tab:hover, .category-tab.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-bottom: 48px; }
.post-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.post-card-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 3/2; background: var(--gray-100); flex-shrink: 0;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.15);
}
.post-card-cat-badge { position: absolute; top: 12px; left: 12px; }

.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  font-size: .8125rem; color: var(--text-muted); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.post-card-title {
  font-size: 1.0625rem; color: var(--navy);
  margin-bottom: 10px; line-height: 1.4;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt {
  color: var(--text-muted); font-size: .9rem;
  line-height: 1.6; margin-bottom: 18px; flex: 1;
}
.post-card-footer { display: none; } /* no longer used */
.read-more-inline {
  font-size: inherit; font-weight: 700;
  color: var(--orange); text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.read-more-inline:hover { color: var(--orange-600); text-decoration: underline; }

/* Pagination */
.posts-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; }
.posts-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  background: var(--white); border: 1px solid var(--border); transition: var(--transition);
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.posts-pagination .page-numbers.dots { border: none; background: none; pointer-events: none; }

/* =============================================
   SINGLE POST — HEADER
   ============================================= */
.single-post-header { background: var(--navy); padding: 60px 0 44px; }
.post-breadcrumb {
  font-size: .8125rem; color: rgba(255,255,255,.48);
  margin-bottom: 18px; display: flex; align-items: center; gap: 6px;
}
.post-breadcrumb a { color: rgba(255,255,255,.62); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--orange); }
.post-breadcrumb .sep { color: rgba(255,255,255,.28); }
.single-post-title {
  color: var(--white); font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.2; margin-bottom: 20px; max-width: 820px;
}
.single-post-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem; color: rgba(255,255,255,.6);
}
.post-meta-item svg { width: 14px; height: 14px; fill: rgba(255,255,255,.5); flex-shrink: 0; }

/* Blog Banner */
.post-banner-wrap { overflow: hidden; background: var(--gray-100); max-height: 520px; }
.post-banner-wrap img { width: 100%; height: 480px; object-fit: cover; display: block; }
.post-banner-placeholder { height: 80px; background: linear-gradient(to bottom, #1a2f4a, #0D1B2A); }

/* Post Body Layout */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; padding: 60px 0; align-items: start; }

/* Entry Content */
.entry-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 {
  font-size: 1.625rem; margin: 2.5rem 0 1rem; color: var(--navy);
  padding-bottom: .5rem; border-bottom: 2px solid var(--border);
}
.entry-content h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--navy); }
.entry-content h4 { margin: 1.75rem 0 .75rem; }
.entry-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1.5rem; }
.entry-content ol { padding-left: 1.5rem; list-style: decimal; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content strong { color: var(--navy); font-weight: 600; }
.entry-content em { font-style: italic; }
.entry-content blockquote {
  border-left: 4px solid var(--orange); padding: 18px 24px;
  margin: 2rem 0; background: var(--orange-100);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content blockquote p { font-style: italic; color: var(--gray-700); margin: 0; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--orange-600); }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content table { width: 100%; margin-bottom: 1.5rem; font-size: .9375rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--navy); color: var(--white); font-weight: 600; }
.entry-content tr:nth-child(even) td { background: var(--gray-50); }
.entry-content code {
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
  font-size: .9em; font-family: 'Courier New', monospace; color: var(--navy);
}
.entry-content pre {
  background: var(--navy); color: #e2e8f0; padding: 22px;
  border-radius: var(--radius); overflow-x: auto; margin-bottom: 1.5rem;
}
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: .875rem; }
.entry-content .wp-block-image { margin: 1.5rem 0; }

/* AdSense — In Content */
.adsense-in-content { margin: 2rem 0; min-height: 90px; text-align: center; }

/* Post Footer — Tags */
.post-tags { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tags-label { font-size: .875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.post-tag {
  display: inline-block; padding: 5px 14px; background: var(--gray-100);
  border-radius: 20px; font-size: .8125rem; color: var(--text-muted);
  text-decoration: none; margin: 3px 3px 3px 0; transition: var(--transition);
}
.post-tag:hover { background: var(--navy); color: var(--white); }

/* Post Navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
}
.post-nav-item {
  padding: 18px 20px; background: var(--gray-50); border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--border); transition: var(--transition);
}
.post-nav-item:hover { border-color: var(--orange); background: var(--white); }
.post-nav-item.nav-next { text-align: right; }
.post-nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.post-nav-title { font-size: .9375rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* =============================================
   SIDEBAR
   ============================================= */
.post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 22px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.sidebar-widget-title {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--navy);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}
.sidebar-post-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.sidebar-post-item:first-child { padding-top: 0; }
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-thumb {
  width: 68px; height: 56px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: var(--gray-100);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sidebar-post-item:hover .sidebar-post-thumb img { transform: scale(1.07); }
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
  font-size: .875rem; font-weight: 600; color: var(--navy); line-height: 1.4;
  margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition);
}
.sidebar-post-item:hover .sidebar-post-title { color: var(--orange); }
.sidebar-post-date { font-size: .75rem; color: var(--text-muted); }
.sidebar-post-no-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-800));
}

/* AdSense Sidebar */
.adsense-sidebar { text-align: center; }
.adsense-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.adsense-slot { min-height: 250px; background: var(--gray-50); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); }
.adsense-slot-placeholder { font-size: .75rem; color: var(--text-muted); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); padding: 100px 0 80px; }
.about-hero-inner { max-width: 680px; }
.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,.7); font-size: 1.125rem; }

.about-intro { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-placeholder {
  height: 360px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.15);
}

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value-card {
  padding: 28px 24px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  text-align: center; transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h4 { margin-bottom: 8px; font-size: 1.0625rem; }
.value-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero { background: var(--navy); padding: 80px 0 60px; text-align: center; }
.contact-hero h1 { color: var(--white); margin-bottom: 10px; }
.contact-hero p { color: rgba(255,255,255,.62); }

.contact-wrap { padding: 80px 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
}
.contact-info-card h3 { margin-bottom: 8px; }
.contact-info-card > p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 24px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; padding-bottom: 0; }
.contact-detail-icon {
  width: 38px; height: 38px; background: var(--orange-100);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.contact-detail span { font-size: .875rem; color: var(--text-muted); }

.contact-form-card {
  background: var(--white); padding: 40px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-card h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9375rem; color: var(--text); background: var(--white);
  transition: var(--transition); -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.11);
}
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-message {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: .9rem; font-weight: 500;
}
.form-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* =============================================
   GENERIC PAGE
   ============================================= */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); padding: 80px 0 60px; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.65); }
.page-content-wrap { padding: 64px 0; }
.page-content-inner { max-width: 880px; margin: 0 auto; }
.page-content-inner .entry-content h2 { border-bottom: 2px solid var(--border); padding-bottom: .5rem; }

/* Privacy policy specific */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 { margin: 2rem 0 .75rem; }
.policy-content p, .policy-content li { font-size: 1rem; color: var(--text-muted); }
.policy-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }

/* =============================================
   SITE FOOTER — bottom bar only
   ============================================= */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-bottom { padding: 22px 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-copyright { font-size: .8125rem; color: rgba(255,255,255,.45); }
.footer-copyright a { color: rgba(255,255,255,.6); text-decoration: none; transition: var(--transition); }
.footer-copyright a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: .8125rem; color: rgba(255,255,255,.45);
  text-decoration: none; transition: var(--transition);
}
.footer-legal a:hover { color: var(--orange); }

/* =============================================
   404 PAGE
   ============================================= */
.error-404-wrap { text-align: center; padding: 100px 0; }
.error-code { font-size: 8rem; font-weight: 800; color: var(--navy); opacity: .07; line-height: 1; margin-bottom: 8px; }
.error-404-wrap h1 { margin-bottom: 16px; }
.error-404-wrap p { color: var(--text-muted); max-width: 440px; margin: 0 auto 32px; }

/* =============================================
   SEARCH
   ============================================= */
.search-hero { background: var(--navy); padding: 60px 0; }
.search-hero h1 { color: var(--white); }
.search-hero h1 span { color: var(--orange); }
.search-results-wrap { padding: 56px 0; background: var(--gray-50); }
.search-no-results { text-align: center; padding: 40px; }
.search-no-results h2 { margin-bottom: 12px; }
.search-no-results p { color: var(--text-muted); }

/* =============================================
   LATEST POSTS — HOMEPAGE SECTION
   ============================================= */
.home-posts-section { padding: 80px 0; }
.home-posts-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }

/* =============================================
   ACCESSIBILITY
   ============================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; top: -100%; left: 24px; z-index: 9999;
  padding: 10px 20px; background: var(--orange); color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* =============================================
   WP CORE OVERRIDES
   ============================================= */
.wp-caption { max-width: 100%; margin: 1rem 0; }
.wp-caption-text { font-size: .875rem; color: var(--text-muted); text-align: center; margin-top: 6px; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1rem auto; text-align: center; }
.alignwide { margin-left: -24px; margin-right: -24px; }
.wp-block-separator { border-top: 2px solid var(--border); margin: 2rem 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-layout { grid-template-columns: 1fr 280px; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section, .hero { padding: 60px 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .cover-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .home-posts-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .contact-form-card { padding: 22px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .single-post-title { font-size: 1.625rem; }
  .post-banner-wrap img { height: 240px; }
  .hero { padding: 80px 0 60px; }
}
