/* ============================================
   RCC - Sections Styles
   ============================================ */

/* ---- SERVICES ---- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rcc-blue), var(--rcc-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(26, 31, 168, 0.1), rgba(240, 165, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--rcc-blue), var(--rcc-blue-light));
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rcc-blue);
  transition: gap var(--transition);
}

[data-theme="dark"] .service-card__arrow {
  color: var(--rcc-yellow);
}

.service-card:hover .service-card__arrow {
  gap: 10px;
}

/* ---- STATS / COUNTER ---- */

.stats-section {
  background: linear-gradient(135deg, var(--rcc-blue) 0%, var(--rcc-blue-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-item__number .stat-suffix {
  color: var(--rcc-yellow);
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 500;
}

/* ---- PROJECTS / PORTFOLIO ---- */

.projects__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rcc-blue);
  color: var(--white);
  border-color: var(--rcc-blue);
  box-shadow: 0 4px 16px rgba(26, 31, 168, 0.3);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-secondary);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__img {
  transform: scale(1.1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 80, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__cat {
  font-size: 0.78rem;
  color: var(--rcc-yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.project-card__location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* Featured project - spans 2 cols */
.project-card--featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ---- WHY US ---- */

.whyus__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.whyus__img-wrapper {
  position: relative;
}

.whyus__img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.whyus__img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--rcc-yellow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.whyus__img-badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.whyus__img-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(0,0,0,0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.whyus__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.whyus__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.whyus__item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: rgba(26, 31, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(26, 31, 168, 0.15);
}

[data-theme="dark"] .whyus__item-icon {
  background: rgba(240, 165, 0, 0.1);
  border-color: rgba(240, 165, 0, 0.2);
}

.whyus__item-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.whyus__item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */

.testimonials-section {
  background: var(--bg-secondary);
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--rcc-yellow);
  opacity: 0.3;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--rcc-yellow);
  font-size: 0.9rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rcc-blue), var(--rcc-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   AI CHAT — ROYA  · Design robot moderne professionnel
   ═══════════════════════════════════════════════════════════ */

/* ── Bouton flottant ── */
.ai-chat-bubble {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 900;
}

.ai-chat-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a237e 0%, #1565C0 60%, #0d47a1 100%);
  box-shadow:
    0 8px 24px rgba(21, 101, 192, 0.5),
    0 0 0 0 rgba(21, 101, 192, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  position: relative;
  overflow: visible;
  animation: chatPulseRing 3s ease-in-out infinite;
}

@keyframes chatPulseRing {
  0%   { box-shadow: 0 8px 24px rgba(21,101,192,.5), 0 0 0 0 rgba(21,101,192,.35); }
  60%  { box-shadow: 0 8px 24px rgba(21,101,192,.5), 0 0 0 14px rgba(21,101,192,0); }
  100% { box-shadow: 0 8px 24px rgba(21,101,192,.5), 0 0 0 0 rgba(21,101,192,0); }
}

.ai-chat-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 16px 40px rgba(21, 101, 192, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Robot SVG icon */
.ai-chat-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ai-chat-btn-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.ai-chat-btn:hover .ai-chat-btn-icon svg {
  transform: scale(1.1);
}

.ai-chat-btn .notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  background: var(--rcc-yellow);
  border-radius: 50%;
  border: 2.5px solid white;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

/* ── Fenêtre de chat ── */
.ai-chat-window {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 390px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.18),
    0 8px 24px rgba(21,101,192,0.12),
    0 0 0 1px var(--border-color);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
  transform: scale(0.9) translateY(12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  transform-origin: bottom right;
}

.ai-chat-window.open {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── En-tête avec robot ── */
.ai-chat-header {
  background: linear-gradient(135deg, #1a237e 0%, #1565C0 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ai-chat-header::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.ai-chat-header::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 30%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Avatar robot 3D */
.ai-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.ai-chat-avatar svg {
  width: 26px;
  height: 26px;
  fill: white;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Status dot */
.ai-chat-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4CAF50;
  border: 2px solid white;
  animation: onlinePulse 2.5s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(76,175,80,0); }
}

.ai-chat-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  letter-spacing: 0.02em;
}

.ai-chat-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-chat-subtitle::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.ai-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ai-chat-close:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  transform: rotate(90deg);
}

/* ── Messages ── */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

[data-theme="dark"] .ai-chat-messages {
  background: #0d0f1f;
}

.ai-message {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.58;
  word-break: break-word;
  animation: msgSlideIn 0.25s ease forwards;
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ai-message--bot {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 16px 4px;
  color: var(--text-primary);
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="dark"] .ai-message--bot {
  background: #1a1d36;
  border-color: #2a2e52;
}

.ai-message--user {
  background: linear-gradient(135deg, #1a237e, #1565C0);
  color: white;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(21,101,192,0.35);
}

/* Typing indicator */
.ai-typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-items: center;
}

[data-theme="dark"] .ai-typing {
  background: #1a1d36;
  border-color: #2a2e52;
}

.ai-typing span {
  width: 8px;
  height: 8px;
  background: var(--rcc-blue);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
  opacity: 0.7;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; background: #1565C0; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; background: var(--rcc-yellow); }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.6; }
  30%            { transform: translateY(-7px); opacity: 1; }
}

/* Quick actions */
.rcc-qa {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 6px;
}

.rcc-qa-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(26, 35, 126, 0.22);
  background: rgba(26, 35, 126, 0.06);
  color: var(--rcc-blue);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  white-space: nowrap;
}

[data-theme="dark"] .rcc-qa-btn {
  border-color: rgba(100,130,255,0.3);
  background: rgba(100,130,255,0.08);
  color: #8899ff;
}

.rcc-qa-btn:hover {
  background: var(--rcc-blue);
  color: white;
  border-color: var(--rcc-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,35,126,0.3);
}

[data-theme="dark"] .rcc-qa-btn:hover {
  background: #3d5afe;
  border-color: #3d5afe;
}

/* ── Zone de saisie ── */
.ai-chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
}

[data-theme="dark"] .ai-chat-input-area {
  background: #12142b;
  border-top-color: #2a2e52;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}

[data-theme="dark"] .ai-chat-input {
  background: #0d0f1f;
  border-color: #2a2e52;
  color: #eef0fb;
}

.ai-chat-input::placeholder {
  color: var(--text-muted);
}

.ai-chat-input:focus {
  border-color: var(--rcc-blue);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.12);
}

[data-theme="dark"] .ai-chat-input:focus {
  border-color: #3d5afe;
  box-shadow: 0 0 0 3px rgba(61,90,254,0.15);
}

.ai-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a237e, #1565C0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  border: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21,101,192,0.35);
}

.ai-chat-send:hover {
  background: linear-gradient(135deg, var(--rcc-yellow-dark), var(--rcc-yellow));
  color: #0a1628;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(240,165,0,0.4);
}

.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- WHATSAPP FLOAT ---- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  background: #20bb5a;
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  bottom: 14px;
  background: var(--gray-900);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ---- CONTACT ---- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact__info-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact__info-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(26, 31, 168, 0.08);
  border: 1px solid rgba(26, 31, 168, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--rcc-blue);
}

[data-theme="dark"] .contact__info-icon {
  background: rgba(240, 165, 0, 0.08);
  border-color: rgba(240, 165, 0, 0.15);
  color: var(--rcc-yellow);
}

.contact__info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact__info-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.contact__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--rcc-blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(26, 31, 168, 0.1);
}

.form-input.error {
  border-color: #e53e3e;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b91b0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-error-msg {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: -4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #22c55e;
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* ---- FOOTER ---- */

.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}

[data-theme="dark"] .footer {
  background: #080910;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.5);
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}

.footer__social-btn:hover {
  background: var(--rcc-yellow);
  color: var(--black);
  border-color: var(--rcc-yellow);
  transform: translateY(-3px);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--rcc-yellow);
  transition: transform var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__links a:hover::before {
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer__contact-item-icon {
  font-size: 0.9rem;
  color: var(--rcc-yellow);
  margin-top: 2px;
}

.footer__contact-item-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer__copyright span {
  color: var(--rcc-yellow);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--featured { grid-column: span 2; }
  .whyus__split { grid-template-columns: 1fr; gap: 48px; }
  .whyus__img-wrapper { max-width: 500px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none; }
  .contact__form { padding: 28px 24px; }
  .contact__form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-chat-window { width: 320px; }
}