/*
Theme Name: MMetaMatrix
Theme URI: https://mmetamatrix.com
Author: Metamatrix Digital Solutions
Author URI: https://mmetamatrix.com
Description: Exact replica of MMetaMatrix Digital Agency website. Clean, professional light theme with white background. Includes Home, Services, Portfolio, Case Studies, Blog, and Contact pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mmetamatrix
Tags: light, white, agency, portfolio, blog, business, clean, minimal
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --accent:     #4ade80;        /* green highlight seen on site */
  --accent-dark:#16a34a;
  --dark-bg:    #111827;
  --dark-card:  #1f2937;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.1);
  --border:     #e5e7eb;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--black); }

/* ===========================
   TYPOGRAPHY
=========================== */
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: var(--gray-900); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--gray-900); }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--gray-900); }
h4 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
h5 { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
p  { color: var(--gray-500); line-height: 1.7; }

.highlight { color: var(--accent-dark); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--gray-500); }

/* ===========================
   LAYOUT
=========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--sm { max-width: 720px; }
.section { padding: 80px 0; }
.section--sm { padding: 60px 0; }
.section-dark { background: var(--dark-bg); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--gray-400);
  display: inline-block;
}

.section-header { margin-bottom: 56px; }
.section-header p { margin-top: 12px; max-width: 560px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 12px auto 0; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}
.btn-dark:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-600); color: var(--gray-900); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn svg, .btn .arrow { font-style: normal; }

/* ===========================
   NAVIGATION
=========================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 40px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-900);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
}
.site-logo-text { line-height: 1; }
.site-logo-text span { display: block; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gray-500); text-transform: uppercase; }

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#primary-navigation ul li a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}
#primary-navigation ul li a:hover { color: var(--gray-900); background: var(--gray-100); }
#primary-navigation ul li.current-menu-item a {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-contact { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 80px 24px 40px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; color: var(--gray-800); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  width: 40px;
  height: 40px;
}

/* ===========================
   HERO - HOME
=========================== */
.hero {
  padding: 70px 0 80px;
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  color: var(--gray-700);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-badge::before { content: '✦'; font-size: 0.65rem; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .highlight { color: var(--accent-dark); }
.hero-desc { font-size: 1rem; margin-bottom: 32px; max-width: 480px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.hero-stat-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-stat-badge .stat-icon { color: var(--accent-dark); font-size: 1rem; }
.hero-stat-badge .stat-label { font-size: 0.7rem; color: var(--gray-500); }
.hero-stat-badge .stat-value { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 6px;
}

/* ===========================
   WHY US SECTION
=========================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.why-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-900);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.1rem;
}
.why-card h4 { margin-bottom: 8px; font-size: 1rem; }
.why-card p  { font-size: 0.875rem; }

/* ===========================
   VALUE PROPOSITION (dark)
=========================== */
.value-section { background: var(--dark-bg); color: var(--white); }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.value-section .section-eyebrow { color: var(--gray-400); }
.value-section .section-eyebrow::before { background: var(--gray-600); }
.value-section h2 { color: var(--white); }
.value-section p  { color: var(--gray-400); }

.value-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-400);
}
.value-item .v-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-top: 2px;
}
.value-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.value-img-wrap {
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.value-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.value-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-badge .vb-icon { font-size: 1.1rem; }
.value-badge .vb-title { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.value-badge .vb-sub { font-size: 0.72rem; color: var(--gray-400); }

/* ===========================
   SERVICES PAGE
=========================== */
.services-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 64px;
  scrollbar-width: none;
}
.services-nav::-webkit-scrollbar { display: none; }
.service-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 120px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 600;
}
.service-nav-item:hover, .service-nav-item.active {
  border-color: var(--gray-900);
  background: var(--gray-900);
  color: var(--white);
}
.service-nav-item svg, .service-nav-item .sn-icon { font-size: 1.25rem; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }
.service-row.reverse { }
.service-row.reverse .service-content { order: 2; }
.service-row.reverse .service-visual { order: 1; }

.service-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.service-content h2 { margin-bottom: 16px; }
.service-content p { margin-bottom: 24px; }

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-700);
}
.service-feature::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dcfce7;
  border: 1px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316a34a'%3E%3Cpath d='M12 5L6.5 11 4 8.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.service-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.service-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  font-size: 4rem;
}

/* ===========================
   PORTFOLIO PAGE
=========================== */
.portfolio-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.pf-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-btn.active, .pf-btn:hover {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}
.pf-btn-icon { font-size: 0.75rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.portfolio-card-img {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-card-body { padding: 24px; }
.portfolio-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portfolio-card-body p { font-size: 0.85rem; margin-bottom: 16px; }

.portfolio-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.pm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-600);
}
.pm-item::before { content: '↗'; color: var(--accent-dark); font-weight: 700; font-size: 0.75rem; }

.view-case-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.view-case-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* ===========================
   CASE STUDIES PAGE
=========================== */
.case-study-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.cs-header {
  background: var(--gray-900);
  padding: 28px 36px;
  color: var(--white);
}
.cs-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cs-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cs-duration { font-size: 0.75rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 4px; }
.cs-header h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 4px; }
.cs-subtitle { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.cs-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
}
.cs-content { padding: 36px; border-right: 1px solid var(--border); }
.cs-results { padding: 36px; }

.cs-block { margin-bottom: 28px; }
.cs-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.cs-block-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.cs-block-icon.red { background: #fee2e2; color: #dc2626; }
.cs-block-icon.green { background: #dcfce7; color: #16a34a; }
.cs-block p { font-size: 0.875rem; }

.cs-quote {
  background: var(--gray-50);
  border-left: 3px solid var(--gray-900);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}
.cs-quote p { font-size: 0.85rem; font-style: italic; color: var(--gray-700); }
.cs-quote-author { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cs-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--gray-600); flex-shrink: 0; }
.cs-author-name { font-size: 0.8rem; font-weight: 600; color: var(--gray-900); }
.cs-author-role { font-size: 0.72rem; color: var(--gray-400); }

.cs-results h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 20px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-item {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.result-icon {
  width: 32px;
  height: 32px;
  background: var(--gray-900);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.result-num { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; line-height: 1; }
.result-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.07em; color: var(--gray-400); margin-top: 4px; }

/* ===========================
   BLOG PAGE
=========================== */
.blog-page-header { text-align: center; padding: 64px 0 56px; }
.blog-page-header h1 { margin-bottom: 12px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-thumb {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-meta span { font-size: 0.75rem; color: var(--gray-400); display: flex; align-items: center; gap: 4px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.45; flex: 1; }
.blog-card-body p { font-size: 0.845rem; line-height: 1.65; margin-bottom: 16px; }
.blog-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.blog-author-info { display: flex; align-items: center; gap: 8px; }
.blog-author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--gray-600); }
.blog-author-name { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); }
.blog-read-arrow { color: var(--gray-400); font-size: 1.1rem; transition: var(--transition); }
.blog-card:hover .blog-read-arrow { color: var(--gray-900); transform: translateX(3px); }

/* Newsletter bar */
.newsletter-section { background: var(--gray-900); padding: 64px 0; text-align: center; }
.newsletter-section h2 { color: var(--white); margin-bottom: 10px; }
.newsletter-section p { color: var(--gray-400); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
}
.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.3); }

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info-col h2 { margin-bottom: 12px; }
.contact-info-col > p { margin-bottom: 32px; }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.contact-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.cc-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.contact-card h5 { margin-bottom: 4px; font-size: 0.85rem; }
.contact-card p { font-size: 0.8rem; }

.office-card {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.office-card .cc-icon { margin-bottom: 0; flex-shrink: 0; }
.office-card h5 { margin-bottom: 4px; }

.hours-card {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.hours-icon { font-size: 1.1rem; }
.hours-card h5 { color: var(--white); margin-bottom: 4px; font-size: 0.9rem; }
.hours-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0; }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-wrap .form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
}
.form-title-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group label .req { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gray-900); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* Map section */
.map-section { padding: 80px 0; }
.map-section h2 { text-align: center; margin-bottom: 10px; }
.map-section > .container > p { text-align: center; margin-bottom: 32px; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }

/* Quick call section */
.quick-call { text-align: center; padding: 64px 0; }
.quick-call h2 { margin-bottom: 10px; }
.quick-call p { margin-bottom: 28px; }

/* ===========================
   CTA DARK BANNER
=========================== */
.cta-dark {
  background: var(--gray-900);
  text-align: center;
  padding: 80px 0;
}
.cta-dark h2 { color: var(--white); margin-bottom: 12px; }
.cta-dark p { color: var(--gray-400); margin-bottom: 28px; }

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--dark-bg);
  padding: 64px 0 0;
  color: var(--gray-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .site-logo .logo-icon { background: var(--white); color: var(--gray-900); }
.footer-brand p { font-size: 0.85rem; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  transition: var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.footer-col h5 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--gray-500); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.fci-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0; margin-top: 2px;
}
.fci-label { font-size: 0.68rem; color: var(--gray-600); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.fci-value { font-size: 0.82rem; color: var(--gray-400); }
.fci-value a { color: inherit; }
.fci-value a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--gray-500); }
.footer-bottom-links a:hover { color: var(--white); }

/* ===========================
   PAGE HEADERS
=========================== */
.page-header {
  text-align: center;
  padding: 64px 0 52px;
  background: var(--white);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { max-width: 560px; margin: 0 auto; }

/* ===========================
   SINGLE POST
=========================== */
.single-post-hero { padding: 60px 0 40px; }
.single-post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.single-post-meta .cat-tag {
  background: var(--gray-900);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.single-post-meta span { font-size: 0.8rem; color: var(--gray-400); }
.single-post-content h1 { margin-bottom: 16px; }
.single-post-thumb { border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0; aspect-ratio: 16/7; }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body p { margin-bottom: 1.5rem; font-size: 1.025rem; color: var(--gray-700); }
.post-body h2, .post-body h3 { margin: 2rem 0 1rem; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 1.5rem; }
.post-body li { margin-bottom: 8px; color: var(--gray-700); }
.post-body blockquote { border-left: 3px solid var(--gray-900); padding: 16px 20px; background: var(--gray-50); margin: 2rem 0; border-radius: 0 8px 8px 0; font-style: italic; }
.post-body a { color: var(--accent-dark); text-decoration: underline; }

/* ===========================
   404 PAGE
=========================== */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.page-404 .error-num { font-size: 8rem; font-weight: 900; line-height: 1; color: var(--gray-200); letter-spacing: -0.05em; }
.page-404 h2 { margin-bottom: 12px; }
.page-404 p { margin-bottom: 28px; }

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   BACK TO TOP
=========================== */
#back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-md);
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--gray-800); }

/* ===========================
   UTILITY
=========================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  .blog-grid   { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(4, 1fr); }
  .cs-body     { grid-template-columns: 1fr; }
  .cs-content  { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  #primary-navigation, .header-contact { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .value-visual { display: none; }
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-content { order: 1; }
  .service-row.reverse .service-visual { order: 2; display: none; }
  .service-row .service-visual { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
}
