/*
Theme Name: ExcaleX
Theme URI: https://excalex.ca
Author: ExcaleX
Author URI: https://excalex.ca
Description: Thème professionnel pour ExcaleX — Béton Excavation. Optimisé pour la génération d'appels et de soumissions.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: excalex
Tags: business, construction, excavation, one-page, responsive
*/

/* ===========================================================
   VARIABLES & RESET
=========================================================== */
:root {
  --red:          #8B0000;
  --red-bright:   #B22222;
  --red-accent:   #CC2222;
  --silver:       #C0C0C0;
  --silver-light: #E8E8E8;
  --black:        #0A0A0A;
  --dark:         #111111;
  --dark2:        #1A1A1A;
  --dark3:        #222222;
  --white:        #FFFFFF;
  --text-muted:   #AAAAAA;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --transition:   0.3s ease;
  --shadow-red:   0 0 30px rgba(178,34,34,0.4);
  --shadow-dark:  0 8px 40px rgba(0,0,0,0.6);
  --radius:       4px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   TYPOGRAPHY
=========================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===========================================================
   FLOATING CALL BUTTON (mobile)
=========================================================== */
.float-call {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--red-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(204,34,34,0.7);
  white-space: nowrap;
  animation: pulse-btn 2s ease-in-out infinite;
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 24px rgba(204,34,34,0.7); }
  50%       { box-shadow: 0 4px 40px rgba(204,34,34,1); }
}

/* ===========================================================
   TOP BAR
=========================================================== */
.topbar {
  background: var(--red);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--silver-light); }
.topbar__item { display: flex; align-items: center; gap: 6px; }

/* ===========================================================
   HEADER / NAV
=========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red);
  transition: var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo img { height: 64px; width: auto; }
.site-logo span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-logo span em {
  color: var(--red-accent);
  font-style: normal;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--white); background: rgba(178,34,34,0.2); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(204,34,34,0.5);
}
.btn--primary:hover {
  background: #DD3333;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204,34,34,0.7);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--silver);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn--large { font-size: 1.15rem; padding: 18px 38px; }
.btn--small { font-size: 0.85rem; padding: 10px 20px; }
.btn--full  { width: 100%; justify-content: center; }

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(139,0,0,0.25) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(139,0,0,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #0A0A0A 0%, #1a0505 50%, #0A0A0A 100%);
}

/* Diagonal texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.012) 4px,
    rgba(255,255,255,0.012) 5px
  );
}

/* Animated red line accents */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__lines::before,
.hero__lines::after {
  content: '';
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
  animation: scan 6s linear infinite;
  opacity: 0.5;
}
.hero__lines::before { width: 60%; top: 30%; animation-delay: 0s; }
.hero__lines::after  { width: 40%; top: 65%; animation-delay: 3s; }
@keyframes scan {
  0%   { left: -60%; }
  100% { left: 110%; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,0,0,0.3);
  border: 1px solid rgba(204,34,34,0.5);
  color: var(--silver-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red-accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero__title .exca { color: var(--silver-light); }
.hero__title .lex  {
  color: var(--red-accent);
  text-shadow: 0 0 40px rgba(204,34,34,0.6);
}
.hero__title .sub {
  display: block;
  font-size: 0.45em;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.18em;
  margin-top: 4px;
}

.hero__desc {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--silver);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver-light);
}
.hero__checks li::before {
  content: '✔';
  color: var(--red-accent);
  font-size: 1.1rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero__stats {
  position: absolute;
  bottom: 40px;
  right: 0;
  display: flex;
  gap: 0;
  animation: fadeInUp 0.6s 0.5s ease both;
  z-index: 2;
}
.stat-block {
  padding: 20px 32px;
  background: rgba(26,26,26,0.85);
  border-top: 2px solid var(--red);
  text-align: center;
  backdrop-filter: blur(8px);
}
.stat-block:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.08); }
.stat-block__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red-accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(204,34,34,0.5);
}
.stat-block__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-top: 4px;
}

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

/* ===========================================================
   URGENCE BANNER
=========================================================== */
.urgency-bar {
  background: var(--red);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.urgency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.urgency-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}
.urgency-bar__item .icon { font-size: 1.2rem; }

/* ===========================================================
   SECTION BASE
=========================================================== */
.section { padding: 90px 0; }
.section--dark  { background: var(--dark); }
.section--dark2 { background: var(--dark2); }
.section--dark3 { background: var(--dark3); }

.section__header { text-align: center; margin-bottom: 60px; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section__title span { color: var(--red-accent); }
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Divider accent */
.divider-red {
  width: 60px; height: 3px;
  background: var(--red-accent);
  margin: 16px auto 0;
}

/* ===========================================================
   TRUST / WHY EXCALEX
=========================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.trust-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--red);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-accent));
  opacity: 0;
  transition: var(--transition);
}
.trust-card:hover {
  transform: translateY(-5px);
  border-color: rgba(204,34,34,0.4);
  box-shadow: var(--shadow-red);
}
.trust-card:hover::before { opacity: 1; }

.trust-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.trust-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.trust-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================================
   SERVICES
=========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red-accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  background: #2a0808;
  border-color: rgba(204,34,34,0.3);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.service-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===========================================================
   CTA SECTION
=========================================================== */
.cta-section {
  background:
    linear-gradient(135deg, rgba(139,0,0,0.6) 0%, rgba(10,10,10,1) 60%),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.015) 4px, rgba(255,255,255,0.015) 5px);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  padding: 80px 0;
  text-align: center;
}
.cta-section .section__title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-section .section__subtitle { font-size: 1.15rem; margin-bottom: 40px; color: var(--silver); }
.cta-section__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===========================================================
   CONTACT / FORM
=========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info__icon {
  width: 48px; height: 48px;
  background: rgba(139,0,0,0.3);
  border: 1px solid rgba(204,34,34,0.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-accent);
  margin-bottom: 3px;
}
.contact-info__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.contact-info__value a { color: var(--white); }
.contact-info__value a:hover { color: var(--red-accent); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red-accent);
  box-shadow: 0 0 0 3px rgba(204,34,34,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer {
  background: #080808;
  border-top: 2px solid var(--red);
  padding: 50px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
}
.footer__brand-name em { color: var(--red-accent); font-style: normal; }

.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer__links a::before { content: '›'; color: var(--red-accent); font-size: 1.1rem; }
.footer__links a:hover { color: var(--white); padding-left: 4px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================================
   SCROLL ANIMATION
=========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { position: static; margin-top: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .topbar__inner { justify-content: center; }

  .main-nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-top: 1px solid var(--red);
    border-bottom: 1px solid var(--red);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .main-nav.open + .header__cta { display: none; }

  .hero__content { padding: 100px 0 60px; }
  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-block { flex: 1; min-width: 120px; }

  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .float-call { display: flex; }
  body { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .urgency-bar__inner { flex-direction: column; gap: 10px; }
  .cta-section__buttons { flex-direction: column; align-items: center; }
}
