/*
Theme Name: DB Énergie
Theme URI: https://db-energie.td
Author: DB Énergie
Author URI: https://db-energie.td
Description: Thème WordPress professionnel pour DB Énergie - Solutions solaires et électriques à N'Djamena, Tchad. Design moderne bleu/vert/blanc, optimisé SEO local.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: db-energie
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════════════════ */

:root {
  --db-blue: #0f4c81;
  --db-blue-dark: #0a3558;
  --db-blue-light: #e8f4fd;
  --db-green: #16a34a;
  --db-green-dark: #0d7a34;
  --db-green-light: #f0fdf4;
  --whatsapp: #25D366;
  --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;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 0.75rem;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 1rem auto 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--db-green);
}

.text-center { text-align: center; }
.text-blue { color: var(--db-blue); }
.text-green { color: var(--db-green); }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-green {
  background-color: var(--db-green);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-green:hover {
  background-color: var(--db-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.btn-blue {
  background-color: var(--db-blue);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-blue:hover {
  background-color: var(--db-blue-dark);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.2);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1fb855;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--db-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.navbar-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.navbar-brand .logo-text .green {
  color: var(--db-green);
}

/* Custom logo image */
.navbar-brand .custom-logo-link {
  display: flex;
  align-items: center;
}

.navbar-brand .custom-logo {
  max-height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .navbar-brand .custom-logo {
    max-height: 2.5rem;
  }
}

.navbar-brand .custom-logo-link .site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-left: 0.5rem;
}

.navbar-brand .custom-logo-link .site-name .green {
  color: var(--db-green);
}

.navbar:not(.scrolled) .navbar-brand .custom-logo-link .site-name {
  color: #fff;
}

.navbar.scrolled .navbar-brand .custom-logo-link .site-name {
  color: var(--db-blue);
}

.navbar:not(.scrolled) .navbar-brand .logo-text {
  color: #fff;
}

.navbar.scrolled .navbar-brand .logo-text {
  color: var(--db-blue);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .navbar-links { display: flex; }
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar:not(.scrolled) .navbar-links a {
  color: rgba(255,255,255,0.9);
}

.navbar:not(.scrolled) .navbar-links a:hover {
  color: var(--db-green);
}

.navbar.scrolled .navbar-links a {
  color: var(--gray-700);
}

.navbar.scrolled .navbar-links a:hover {
  color: var(--db-green);
}

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .navbar-toggle { display: none; }
}

.navbar-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.navbar:not(.scrolled) .navbar-toggle svg {
  color: #fff;
}

.navbar.scrolled .navbar-toggle svg {
  color: var(--gray-800);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 0.375rem;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background-color: var(--db-blue-light);
  color: var(--db-blue);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,53,88,0.9), rgba(15,76,129,0.8), rgba(10,53,88,0.7));
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.hero-glow-1 {
  top: -5rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  background-color: rgba(22,163,74,0.1);
}

.hero-glow-2 {
  bottom: 2.5rem;
  left: -5rem;
  width: 24rem;
  height: 24rem;
  background-color: rgba(22,163,74,0.05);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0 4rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: #facc15;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero h1 .green {
  color: var(--db-green);
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero-trust {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--db-green);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll-dot {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  padding: 0.25rem;
  position: relative;
}

.hero-scroll-dot::after {
  content: '';
  width: 0.375rem;
  height: 0.5rem;
  background: rgba(255,255,255,0.6);
  border-radius: 9999px;
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */

.services {
  background-color: var(--gray-50);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--db-blue-light);
  color: var(--db-blue);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--db-blue);
  color: #fff;
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.service-card p {
  margin-top: 0.75rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.service-features {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.service-features svg {
  width: 1rem;
  height: 1rem;
  color: var(--db-green);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */

.process {
  background: #fff;
}

.process-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-icon-wrap {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: var(--db-blue);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.process-icon-wrap svg {
  width: 2.25rem;
  height: 2.25rem;
}

.process-num {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--db-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════ */

.why-us {
  background-color: var(--db-blue);
}

.why-us .section-label { color: var(--db-green); }
.why-us .section-title { color: #fff; }
.why-us .section-subtitle { color: rgba(255,255,255,0.75); }

.why-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.why-card:hover {
  background-color: rgba(255,255,255,0.1);
}

.why-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: rgba(22,163,74,0.2);
  color: var(--db-green);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background-color: var(--db-green);
  color: #fff;
}

.why-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.why-card p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--db-green);
}

@media (min-width: 1024px) {
  .stat-value { font-size: 2.5rem; }
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   REALISATIONS
   ═══════════════════════════════════════════ */

.realisations {
  background-color: var(--gray-50);
}

.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
}

.project-img {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--db-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 1.5rem 1.5rem 0;
}

.project-card p {
  padding: 0.5rem 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.about-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-floating-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background-color: var(--db-blue);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  color: #fff;
}

@media (min-width: 640px) {
  .about-floating-card { right: -1.5rem; }
}

.about-floating-card .value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--db-green);
}

.about-floating-card .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.about-content .section-label {
  margin-bottom: 0.75rem;
  display: block;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 1.5rem;
}

.about-checklist {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-700);
}

.about-checklist svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--db-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.about-content .btn {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════ */

.team {
  background-color: var(--gray-50);
}

.team-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.team-photo {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15,76,129,0.4), transparent);
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.team-role {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--db-green);
  background-color: var(--db-green-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.team-info p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.team-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.team-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--db-blue-light);
  color: var(--db-blue);
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--db-blue);
  color: #fff;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */

.testimonials {
  background-color: var(--db-green-light);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  color: #facc15;
  fill: #facc15;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--db-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */

.cta-banner {
  background: linear-gradient(to right, var(--db-blue), var(--db-blue-dark));
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .cta-banner h2 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .cta-banner h2 { font-size: 2.25rem; }
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 1rem auto 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-actions { flex-direction: row; justify-content: center; }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 3fr 2fr; }
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .contact-form-card { padding: 2.5rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  color: var(--gray-700);
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--db-blue);
  box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}

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

/* Contact info sidebar */
.contact-info-card {
  background-color: var(--db-blue);
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
}

.contact-info-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.contact-info-card > p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.contact-info-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}

.contact-info-item:hover {
  color: #fff;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-info-item .label {
  font-weight: 500;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--whatsapp);
  color: #fff;
  transition: var(--transition);
}

.contact-whatsapp:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.contact-whatsapp-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.contact-whatsapp-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-whatsapp .title {
  font-weight: 700;
}

.contact-whatsapp .desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.contact-call {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--db-blue-light);
  transition: var(--transition);
}

.contact-call:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.contact-call-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(15,76,129,0.1);
  flex-shrink: 0;
}

.contact-call-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--db-blue);
}

.contact-call .title {
  font-weight: 700;
  color: var(--db-blue);
}

.contact-call .desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background-color: var(--gray-900);
  padding: 4rem 0 2rem;
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand .footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .custom-logo {
  max-height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .footer-brand .custom-logo {
    max-height: 2.5rem;
  }
}

.footer-brand .logo-text .green {
  color: var(--db-green);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  padding: 0.375rem 0;
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  color: var(--db-green);
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--db-green);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   FLOATING BUTTONS
   ═══════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--db-blue);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--db-blue-dark);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   WP ADMIN BAR FIX
   ═══════════════════════════════════════════ */

body.admin-bar .navbar {
  top: 32px;
}

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