/*
Theme Name: PropTech.lk
Theme URI: https://proptech.lk
Author: PropTech.lk
Author URI: https://proptech.lk
Description: Construction Contracts Intelligence Platform — FIDIC, Commercial Management, Claims Analytics & Built Environment Digital Transformation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proptech-lk
Tags: professional, construction, contracts, fidic, responsive, block-editor-styles, full-site-editing
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:     #0a2540;
  --color-accent:      #e8a317;
  --color-accent-dark: #c78a0d;
  --color-surface:     #ffffff;
  --color-surface-alt: #f4f6f9;
  --color-border:      #dde1e9;
  --color-text:        #1a1a2e;
  --color-text-muted:  #5a6073;
  --color-hero-bg:     #0a2540;
  --color-hero-text:   #ffffff;

  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono:  'Fira Code', 'Courier New', monospace;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);

  --container:  1200px;
  --gap:        2rem;
  --section:    5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-dark); }

ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: var(--section); }
.section--alt { background: var(--color-surface-alt); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: var(--gap); }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.site-logo .logo-name span { color: var(--color-accent); }
.site-logo .logo-tagline {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: all .2s;
  display: block;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--color-accent);
  background: rgba(255,255,255,.06);
}

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .5rem 0;
  display: none;
  z-index: 100;
}
.primary-nav .menu-item-has-children:hover .sub-menu { display: block; }
.primary-nav .sub-menu a {
  color: var(--color-text);
  padding: .5rem 1rem;
  border-radius: 0;
  font-size: .85rem;
}
.primary-nav .sub-menu a:hover { color: var(--color-primary); background: var(--color-surface-alt); }

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  padding: .5rem 1.25rem !important;
}
.nav-cta:hover { background: var(--color-accent-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3460 60%, #1a4a7a 100%);
  color: var(--color-hero-text);
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(232,163,23,.15);
  border: 1px solid rgba(232,163,23,.4);
  color: var(--color-accent);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Profile card */
.hero-profile-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-accent);
  overflow: hidden;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.profile-title {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.profile-tag {
  background: rgba(232,163,23,.15);
  border: 1px solid rgba(232,163,23,.3);
  color: var(--color-accent);
  font-size: .7rem;
  padding: .25rem .6rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-accent);
  display: block;
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin-inline: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-body { padding: 1.5rem; }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(10,37,64,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card-excerpt { font-size: .9rem; color: var(--color-text-muted); line-height: 1.6; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.card-category {
  display: inline-block;
  background: rgba(10,37,64,.07);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

/* ============================================================
   KNOWLEDGE HUB / FEATURE GRID
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: all .2s;
  position: relative;
}
.hub-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity .2s;
}
.hub-card:hover::before { opacity: 1; }

.hub-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.hub-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.hub-card-desc { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   TIMELINE (About page)
   ============================================================ */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.75rem;
  top: .25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-accent);
}

.timeline-date {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.timeline-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.timeline-desc { font-size: .9rem; color: var(--color-text-muted); }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: all .2s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-card-header {
  background: linear-gradient(135deg, var(--color-primary), #0d3460);
  padding: 2rem;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.project-title { font-size: 1.15rem; font-weight: 700; color: #fff; }

.project-card-body { padding: 1.5rem; }
.project-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.status-live { background: #d4edda; color: #155724; }
.status-dev  { background: #fff3cd; color: #856404; }
.status-plan { background: #d1ecf1; color: #0c5460; }

.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.project-tag {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: .72rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-weight: 500;
}

/* ============================================================
   BLOG / POST LISTING
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card { display: flex; flex-direction: column; }
.post-card .card-body { flex: 1; display: flex; flex-direction: column; }
.post-card .card-excerpt { flex: 1; }

.post-thumbnail {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary), #0d3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.3);
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 1rem;
}
.read-more:hover { color: var(--color-accent-dark); }
.read-more::after { content: '→'; transition: transform .2s; }
.read-more:hover::after { transform: translateX(3px); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h2 { margin: 2rem 0 .75rem; }
.post-content h3 { margin: 1.5rem 0 .5rem; }
.post-content ul, .post-content ol { margin-bottom: 1rem; }
.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
}
.post-content code {
  background: var(--color-surface-alt);
  padding: .15rem .4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .875em;
}
.post-content pre {
  background: var(--color-primary);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.post-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: .75rem; }
.post-meta { color: var(--color-text-muted); font-size: .875rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget-title { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--color-accent); }

/* Table of Contents */
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: .4rem; }
.toc-list a { font-size: .875rem; color: var(--color-text-muted); }
.toc-list a:hover { color: var(--color-primary); }

/* ============================================================
   FIDIC CLAUSE EXPLORER
   ============================================================ */
.clause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.clause-card {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: all .2s;
}
.clause-card:hover { border-color: var(--color-accent); background: rgba(232,163,23,.04); }

.clause-number {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.clause-name { font-size: .9rem; font-weight: 600; }

.clause-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--color-text-muted);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   RESOURCES / DOWNLOADS
   ============================================================ */
.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: all .2s;
}
.resource-item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(10,37,64,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-info { flex: 1; }
.resource-title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.resource-type { font-size: .78rem; color: var(--color-text-muted); text-transform: uppercase; font-weight: 600; }

.resource-download {
  flex-shrink: 0;
  padding: .5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s;
}
.resource-download:hover { background: var(--color-accent); color: var(--color-primary); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,163,23,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  transition: border-color .2s;
  background: var(--color-surface);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,37,64,.08);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6073' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--color-surface-alt);
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
  padding: 0;
  font-size: .8rem;
}
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: .25rem; color: var(--color-text-muted); }
.breadcrumb-list a { color: var(--color-text-muted); }
.breadcrumb-list a:hover { color: var(--color-primary); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3460 100%);
  padding: 4rem 0 3rem;
  color: #fff;
}
.page-hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.page-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.page-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 600px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-name { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-brand .logo-name span { color: var(--color-accent); }
.footer-brand p { font-size: .875rem; margin-top: .75rem; line-height: 1.7; color: rgba(255,255,255,.6); }

.footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   SKIP LINK & ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-profile-card { max-width: 400px; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section: 3.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav .sub-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.05); }

  .nav-toggle { display: flex; }

  .hero { padding-block: 4rem 3rem; }
  .hero-stats { gap: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .sidebar { display: none; }
  .post-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.alignwide { margin-inline: -2rem; }
.alignfull { margin-inline: calc(-50vw + 50%); }
.wp-caption-text { font-size: .85rem; color: var(--color-text-muted); text-align: center; margin-top: .5rem; }
.sticky { border-left: 3px solid var(--color-accent); padding-left: 1rem; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  transition: all .2s;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
