/*
Theme Name: Agence Création Site Web
Theme URI: https://agence-creation-site-web.be
Author: Agence Création Site Web
Author URI: https://agence-creation-site-web.be
Description: Thème premium pour agence web belge francophone, spécialisée dans la création de sites WordPress pour artisans. Design inspiré des meilleures agences digitales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agence-theme
Tags: portfolio, custom-colors, full-width-template, custom-menu, featured-images
*/

/* ============================================================
   0. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --accent:  #ffcc00;
  --gray:    #f5f5f5;
  --text:    #1a1a1a;
  --muted:   #666666;
  --border:  #e0e0e0;
  --card-bg: #ffffff;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.16);
  --radius:  8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   2. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,204,0,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline-dark:hover {
  border-color: var(--text);
  background: var(--gray);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ============================================================
   4. SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title--white {
  color: var(--white);
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  padding: 24px 0;
}

.site-header.scrolled {
  background: var(--black);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--accent);
}

/* Primary Navigation */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a,
.primary-nav ul li.current_page_item a {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  border: none;
  background: none;
  padding: 0;
}

.hamburger:hover {
  background: rgba(255,255,255,.08);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger open state */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 300px;
}

.mobile-menu ul li a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,.08);
  color: var(--accent);
}

.mobile-menu-cta {
  margin-top: 24px;
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

/* Mosaic background */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  opacity: 0.12;
  pointer-events: none;
}

.mosaic-tile {
  background: var(--accent);
  animation: mosaicPulse 3s ease-in-out infinite alternate;
}

@keyframes mosaicPulse {
  0%   { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Hero gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,204,0,.12);
  border: 1px solid rgba(255,204,0,.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 620px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-number span {
  color: var(--accent);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,.3);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   7. PORTFOLIO SECTION
   ============================================================ */
.section-portfolio {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  padding: 28px;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay-content {
  color: var(--white);
}

.overlay-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.overlay-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.overlay-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  margin-bottom: 16px;
}

.overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.overlay-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition);
}

.overlay-link:hover svg {
  transform: translateX(3px);
}

.portfolio-meta {
  padding: 16px 20px;
  background: var(--white);
}

.portfolio-meta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.portfolio-meta-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.portfolio-cta {
  text-align: center;
}

/* ============================================================
   8. SERVICES SECTION
   ============================================================ */
.section-services {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(255,204,0,.4);
  box-shadow: 0 16px 48px rgba(255,204,0,.12);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--featured {
  border-color: var(--accent);
  background: var(--black);
}

.service-card--featured::before {
  transform: scaleX(1);
}

.service-card--featured .service-title,
.service-card--featured .service-feature {
  color: var(--white);
}

.service-card--featured .service-description {
  color: rgba(255,255,255,.65);
}

.service-card--featured .service-feature svg {
  fill: var(--accent);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,204,0,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.service-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.service-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.service-price sup {
  font-size: 18px;
  vertical-align: super;
}

.service-price-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.service-card--featured .service-price-note {
  color: rgba(255,255,255,.45);
}

.service-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.service-feature svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #22c55e;
}

/* ============================================================
   9. HOW IT WORKS SECTION
   ============================================================ */
.section-process {
  padding: 100px 0;
  background: var(--gray);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255,204,0,.2) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 24px;
  border: 3px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(255,204,0,.12);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   10. TESTIMONIALS SECTION
   ============================================================ */
.section-testimonials {
  padding: 100px 0;
  background: var(--black);
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,204,0,.2);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.testimonial-quote {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 64px;
  color: rgba(255,204,0,.15);
  line-height: 0;
  position: absolute;
  top: 16px;
  left: -8px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   11. CTA BAND
   ============================================================ */
.section-cta-band {
  background: var(--accent);
  padding: 60px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--black);
  max-width: 640px;
  line-height: 1.4;
}

.cta-band-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: gap var(--transition);
}

.cta-band-link:hover {
  gap: 12px;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding-top: 72px;
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .site-logo {
  display: block;
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.footer-widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-widget ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-widget ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer-widget ul li a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: var(--accent);
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255,255,255,.7);
}

/* ============================================================
   13. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--black);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.55);
  max-width: 560px;
  margin-inline: auto;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.page-breadcrumb a:hover {
  color: var(--accent);
}

.page-breadcrumb-sep {
  color: rgba(255,255,255,.2);
}

/* ============================================================
   14. PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 80px 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-bottom: 16px;
  margin-top: 40px;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

.entry-content p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.entry-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.entry-content a:hover {
  color: var(--accent);
}

.entry-content strong {
  font-weight: 700;
  color: var(--text);
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--accent);
  background: var(--gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  color: var(--text);
  font-style: italic;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ============================================================
   15. BLOG INDEX
   ============================================================ */
.blog-section {
  padding: 80px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 24px;
}

.post-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.post-card:hover .post-card-title {
  color: var(--accent);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   16. SINGLE PORTFOLIO
   ============================================================ */
.portfolio-hero {
  background: var(--black);
  padding: 140px 0 80px;
}

.portfolio-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.portfolio-hero-content {
  color: var(--white);
}

.portfolio-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.portfolio-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.portfolio-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.portfolio-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05);
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-related {
  padding: 80px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   17. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pagination .page-numbers.current {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

/* ============================================================
   18. FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,204,0,.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ============================================================
   19. NOTICE / ALERT
   ============================================================ */
.notice {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.notice--success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.notice--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ============================================================
   20. RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   21. RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .primary-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content {
    padding: 100px 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* CTA band */
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Blog */
  .posts-grid {
    grid-template-columns: 1fr;
  }

  /* Related */
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding */
  .section-portfolio,
  .section-services,
  .section-process,
  .section-testimonials,
  .portfolio-related,
  .blog-section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .portfolio-hero {
    padding: 120px 0 60px;
  }

  .section-cta-band {
    padding: 48px 0;
  }
}

/* ============================================================
   22. ANIMATIONS & MISC
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* WP alignment classes */
.alignleft  { float: left;  margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px;  margin-bottom: 16px; }
.aligncenter { display: block; margin-inline: auto; margin-bottom: 16px; }
.alignwide  { width: 100%; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 24px;
  z-index: 9999;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 24px;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* WordPress core required classes */
.wp-block-image img { border-radius: var(--radius); }
.sticky {}
.bypostauthor {}
