/*
Theme Name: RedaDev
Theme URI: https://redadev.com
Author: RedaDev
Author URI: https://redadev.com
Description: Thème WordPress portfolio professionnel pour RedaDev — Développeur WordPress & Solutions Web Sur Mesure en Algérie. Sites vitrines, e-commerce, plateformes personnalisées, plugins et thèmes WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redadev
Tags: one-page, portfolio, custom-logo, custom-menu, featured-images, translation-ready
*/

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

:root {
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f0;
  --text: #1a1a2e;
  --text-dim: #6b6b80;
  --accent: #2563eb;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.1);
  --accent2: #6c5ce7;
  --border: #e4e4e0;
  --accent-03: rgba(37, 99, 235, 0.3);
  --accent-008: rgba(37, 99, 235, 0.08);
  --accent-01: rgba(37, 99, 235, 0.1);
  --accent2-008: rgba(108, 92, 231, 0.08);
  --accent2-01: rgba(108, 92, 231, 0.1);
  --footer-bg: #f0f0ec;
  --bg-08: rgba(250, 250, 248, 0.8);
  --bg-095: rgba(250, 250, 248, 0.95);
  --clr-logo-text: var(--text);
  --clr-logo-accent: var(--accent);
  --clr-nav-links: var(--text-dim);
  --clr-nav-links-hover: var(--text);
  --clr-hero-title: var(--text);
  --clr-hero-hl1: var(--accent);
  --clr-hero-hl2: var(--accent2);
  --clr-section-label: var(--accent);
  --clr-section-title: var(--text);
  --clr-btn-bg: var(--accent);
  --clr-btn-text: #ffffff;
  --clr-btn-glow: rgba(37, 99, 235, 0.25);
  --clr-btn-outline: var(--text);
  --clr-stat-num: var(--accent);
  --clr-svc-tag-bg: var(--accent-008);
  --clr-svc-tag-text: var(--accent);
  --radius: 16px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 40px;
  /* 3-column grid: logo | nav-links (truly centred) | toggle slot */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  backdrop-filter: blur(20px);
  background: var(--bg-08);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s ease;
}

.site-nav.scrolled {
  padding: 12px 40px;
}

.logo {
  grid-column: 1;          /* first col in the 3-col grid */
  font-family: var(--font-display);
  font-size: var(--fs_logo, 1.5rem);
  font-weight: 700;
  letter-spacing: 0px;
  color: var(--clr-logo-text);
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;     /* LTR: left edge  |  RTL: right edge */
}

.logo span { color: var(--clr-logo-accent); }

/* Desktop: grid column 2 centres nav-links automatically (works LTR & RTL) */
.nav-links {
  grid-column: 2;
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  /* no position tricks needed — the grid centres it */
}

.nav-links li { list-style: none; }

.nav-links a {
  color: var(--clr-nav-links);
  text-decoration: none;
  font-size: var(--fs_nav_links, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--clr-nav-links-hover); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--clr-btn-bg) !important;
  color: var(--clr-btn-text) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: var(--fs_nav_cta, 0.85rem) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

.nav-cta::after { display: none !important; }

/* nav-end: col 3 of the desktop grid — holds CTA + hamburger */
.nav-end {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;        /* right-align in col 3 (LTR & RTL) */
  gap: 12px;
}

/* Desktop CTA button (inside nav-end, always visible on desktop) */
.nav-cta-desktop {
  display: inline-flex;
  align-items: center;
}

/* Hide the duplicate CTA that lives inside .nav-links on desktop */
.nav-links .nav-cta { display: none; }

/* Hamburger hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

/* ── HERO ── */
.hero-v2 {
  position: relative;
  padding: 120px 60px 60px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-v2__accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-hero-hl1, var(--accent)), var(--clr-hero-hl2, var(--accent2)), transparent);
}

.hero-v2__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: var(--fs_hero_badge, 0.78rem);
  color: var(--text-dim);
  margin-bottom: 24px;
  animation: heroIn 0.5s ease both;
}

.hero-v2__badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-v2__title {
  font-family: var(--font-display);
  font-size: var(--fs_hero_title, clamp(2.4rem, 5vw, 4rem));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--clr-hero-title, var(--text));
  margin: 0 0 24px;
  animation: heroIn 0.5s ease 0.05s both;
}

.hero-v2__title-hl {
  color: var(--clr-hero-hl1, var(--accent));
}

.hero-v2__sub {
  font-size: var(--fs_hero_subtitle, 1.05rem);
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 32px;
  animation: heroIn 0.5s ease 0.1s both;
}

.hero-v2__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroIn 0.5s ease 0.15s both;
}

.hero-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--clr-btn-bg, var(--accent));
  color: var(--clr-btn-text, #fff);
  font-family: var(--font-body);
  font-size: var(--fs_btn, 0.88rem);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-v2__cta:hover {
  opacity: 0.85;
}

.hero-v2__cta-sec {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  background: transparent;
  color: var(--clr-btn-outline, var(--text));
  font-family: var(--font-body);
  font-size: var(--fs_btn, 0.88rem);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.hero-v2__cta-sec:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-v2__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  animation: heroIn 0.5s ease 0.2s both;
}

.hero-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-v2__stat-num {
  font-family: var(--font-display);
  font-size: var(--fs_hero_stat_num, 1.6rem);
  font-weight: 700;
  color: var(--clr-stat-num, var(--accent));
  line-height: 1;
}

.hero-v2__stat-label {
  font-size: var(--fs_hero_stat_label, 0.78rem);
  color: var(--text-dim);
}

.hero-v2__stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION COMMON ── */
.rd-section {
  padding: 120px 60px;
  position: relative;
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--fs_section_label, 0.8rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-section-label);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  color: var(--clr-section-title);
  font-size: var(--fs_section_title, clamp(1.8rem, 3.5vw, 2.8rem));
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 1.25;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: var(--text-dim);
  max-width: 500px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: var(--fs_section_desc, 1rem);
}

.section-header {
  margin-bottom: 64px;
  text-align: center;
}

/* ── MARQUEE ── */
.marquee-section {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: var(--fs_marquee, 1.4rem);
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.5;
  white-space: nowrap;
  padding: 0 40px;
}

.marquee-item .sep {
  color: var(--accent);
  margin: 0 16px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-03);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-008);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs_service_title, 1.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: var(--fs_service_desc, 0.92rem);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.service-tag {
  font-size: var(--fs_service_tag, 0.75rem);
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--clr-svc-tag-bg);
  color: var(--clr-svc-tag-text);
  font-weight: 500;
}

/* ── PORTFOLIO ── */
#portfolio {
  background: linear-gradient(180deg, var(--bg) 0%, var(--footer-bg) 100%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.project-card:hover {
  border-color: var(--accent-03);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-thumb {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,0,0,0.12);
  letter-spacing: 0px;
}

.project-thumb-inner.t1 { background: linear-gradient(135deg, #e0f2fe, #bfdbfe); }
.project-thumb-inner.t2 { background: linear-gradient(135deg, #e8def8, #d0bcff); }
.project-thumb-inner.t3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

.project-info {
  padding: 24px;
  text-align: center;
}

.project-type {
  font-size: var(--fs_project_type, 0.75rem);
  color: var(--clr-section-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: var(--fs_project_title, 1.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-dim);
  font-size: var(--fs_project_desc, 0.88rem);
  line-height: 1.6;
}

.project-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.project-stack span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent2-008);
  color: var(--accent2);
  font-weight: 500;
}

/* ── PROCESS ── */
#process { background: var(--bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.process-step {
  padding: 36px 28px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  counter-increment: step;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.process-step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-01);
  position: absolute;
  top: 16px;
  right: 20px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs_process_title, 1.1rem);
  margin-bottom: 10px;
  margin-top: 8px;
}

.process-step p {
  color: var(--text-dim);
  font-size: var(--fs_process_desc, 0.88rem);
  line-height: 1.65;
}

/* ── ABOUT ── */
#about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--footer-bg) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--footer-bg), var(--bg-card-hover));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-avatar-code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.1;
  padding: 40px;
  line-height: 2;
  position: absolute;
  inset: 0;
  overflow: hidden;
  word-break: break-all;
}

.about-avatar-name {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--clr-hero-hl1), var(--clr-hero-hl2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-avatar-title {
  position: relative;
  z-index: 2;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.floating-badge.b1 { bottom: -20px; left: -20px; }
.floating-badge.b2 { top: -20px; right: -20px; }
.floating-badge .badge-icon { font-size: 1.3rem; }

.about-text h3 {
  font-family: var(--font-display);
  font-size: var(--fs_about_heading, 1.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: 0px;
  text-align: center;
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: var(--fs_about_text, 1rem);
  text-align: center;
}

.about-text .section-label {
  text-align: center;
}

.about-text p strong { color: var(--text); font-weight: 600; }

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.tech-item {
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.3s;
}

.tech-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.testimonial-card:hover {
  border-color: var(--accent-03);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.testimonial-quote {
  font-size: var(--fs_testimonial_quote, 0.95rem);
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 0;
  display: block;
  margin-bottom: 8px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-01), var(--accent2-01));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--fs_testimonial_name, 0.9rem);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-008), transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: var(--fs_cta_title, var(--fs_section_title));
}

.cta-section .section-desc {
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ── CONTACT ── */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  justify-content: center;
  text-align: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-008);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: var(--fs_contact_title, 1rem);
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left .logo { font-size: var(--fs_logo, 1.3rem); }

.footer-left p {
  color: var(--text-dim);
  font-size: var(--fs_footer_text, 0.85rem);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs_footer_text, 0.85rem);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WP ADMIN BAR FIX ── */
.admin-bar .site-nav {
  top: 32px;
}

/* ── CONTACT FORM 7 INTEGRATION ── */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--clr-btn-bg);
  color: var(--clr-btn-text);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.wpcf7-response-output {
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-size: 0.9rem;
}


/* ── CONTACT INFO ONLY (when form is disabled) ── */
.contact-grid--info-only {
  grid-template-columns: 1fr;
  max-width: 600px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* ── Mobile nav: switch from grid to flex ── */
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* push toggle & logo to opposite edges */
    padding: 16px 24px;
  }
  .site-nav.scrolled { padding: 12px 24px; }

  /*
   * order: 1 → hamburger   (visually FIRST)
   * order: 2 → logo        (visually LAST)
   *
   * LTR (EN/FR): flex start = left   → 🍔 LEFT  · Logo RIGHT  ✓
   * RTL (AR):    flex start = right  → 🍔 RIGHT · Logo LEFT   ✓
   *
   * justify-content: space-between pushes them to opposite ends.
   * No margin tricks needed.
   */
  /* nav-end: reset grid placement, become a flex child */
  .nav-end {
    order: 1;
    grid-column: unset;
    justify-self: unset;
    display: flex;
    align-items: center;
    gap: 0;
  }

  /* Show hamburger on mobile */
  .menu-toggle {
    display: flex;
    margin: 0;
  }

  /* Hide desktop CTA on mobile (it's already inside nav-links dropdown) */
  .nav-cta-desktop { display: none !important; }

  /* Show in-menu CTA inside the open dropdown */
  .nav-links .nav-cta { display: inline-flex; }

  .logo {
    order: 2;
    grid-column: unset;
    justify-self: unset;
    margin: 0;
  }

  /* nav-links: hidden by default, spans full width when open */
  .nav-links {
    display: none;
    order: 3;
    grid-column: unset;   /* undo desktop grid placement */
    justify-content: flex-start;
    flex-basis: 100%;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    background: var(--bg-095);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
  }



  .hero-v2 { padding: 100px 20px 48px; }
  .hero-v2__stats { gap: 16px; flex-wrap: wrap; }
  .hero-v2__stat-num { font-size: 1.3rem; }

  .rd-section, .cta-section, .site-footer { padding: 60px 20px; }





  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar-name { font-size: 3.5rem; }
  .floating-badge.b1 { bottom: -10px; left: -5px; }
  .floating-badge.b2 { top: -10px; right: -5px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }

  .marquee-section { padding: 24px 0; }

  .project-thumb { height: 180px; }
  .project-thumb-inner { font-size: 1.8rem; }

}

@media (max-width: 480px) {

  .section-header { margin-bottom: 40px; }




  .hero-v2 { padding: 90px 16px 40px; }
  .hero-v2__actions { flex-direction: column; }
  .hero-v2__cta, .hero-v2__cta-sec { width: 100%; justify-content: center; text-align: center; }
  .hero-v2__stats { flex-direction: column; gap: 12px; align-items: center; }
  .hero-v2__stat-sep { width: 40px; height: 1px; }
  .hero-v2__stat { flex-direction: row; align-items: center; gap: 8px; }

  .service-card { padding: 28px 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step::before { font-size: 2.2rem; }

  .about-avatar-name { font-size: 3rem; }
  .tech-stack { gap: 6px; }

  .testimonial-card { padding: 24px; }

  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 12px; }
  .site-footer { padding: 40px 20px; }

  .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* ── RTL SUPPORT ── */
[dir="rtl"] .hero,
[dir="rtl"] .section-header,
[dir="rtl"] .about-text,
[dir="rtl"] .cta-section {
  text-align: right;
}

[dir="rtl"] .hero-badge,
[dir="rtl"] .hero-actions,
[dir="rtl"] .hero-stats,
[dir="rtl"] .service-tags,
[dir="rtl"] .project-stack,
[dir="rtl"] .tech-stack {
  direction: rtl;
}

[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author > div {
  text-align: right;
}

[dir="rtl"] .footer-content {
  direction: rtl;
}

[dir="rtl"] .floating-badge.b1 { left: auto; right: -20px; }
[dir="rtl"] .floating-badge.b2 { right: auto; left: -20px; }

@media (max-width: 900px) {
  [dir="rtl"] .floating-badge.b1 { right: -5px; left: auto; }
  [dir="rtl"] .floating-badge.b2 { left: -5px; right: auto; }
}
