/*
Theme Name: Excavation Sol-Xpert
Theme URI: https://solxpert.ca
Author: Sol-Xpert
Author URI: https://solxpert.ca
Description: Thème professionnel pour Excavation Sol-Xpert – Services d'excavation, fondations et drainage à Sainte-Anne-des-Plaines, QC.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solxpert
Tags: construction, excavation, fondation, responsive
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark-gray:  #1c1c1c;
  --mid-gray:   #2a2a2a;
  --gray:       #555555;
  --light-gray: #e8e8e8;
  --white:      #ffffff;
  --orange:     #e8500a;
  --orange-dark:#c44008;
  --orange-light:#ff6a1f;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --radius: 4px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-orange: 0 4px 24px rgba(232,80,10,0.35);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::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(--white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

section { padding: 96px 0; }

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

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }

p { font-size: 1.05rem; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,80,10,0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--orange);
  color: var(--white);
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title { margin-bottom: 20px; }
.section-subtitle { color: var(--gray); max-width: 600px; font-size: 1.1rem; }

/* =========================================
   HEADER / NAV
   ========================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.logo-main span { color: var(--orange); }
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-desktop a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.nav-desktop a:hover { color: var(--orange); }

.nav-cta { margin-left: 8px; padding: 12px 22px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--black);
  padding: 40px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:hover { color: var(--orange); }

/* =========================================
   HERO
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.45;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 800px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: fadeInUp 0.7s 0.4s ease both;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

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

/* =========================================
   TOP BAR
   ========================================= */
#top-bar {
  background: var(--orange);
  padding: 10px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-inner a, .top-bar-inner span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-inner a:hover { opacity: 0.85; }

/* =========================================
   SERVICES
   ========================================= */
#services { background: var(--dark); }

.services-header { margin-bottom: 60px; }
.services-header .section-title { color: var(--white); }
.services-header .section-subtitle { color: rgba(255,255,255,0.5); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark-gray);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,80,10,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-bottom-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(232,80,10,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--orange); }

.service-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.service-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
#why-us {
  background: var(--light-gray);
  padding: 96px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-image-wrap {
  position: relative;
}
.why-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-orange);
}
.why-image-badge .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1; display: block; }
.why-image-badge .small { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

.why-content .section-title { margin-bottom: 20px; }
.why-content .section-subtitle { margin-bottom: 40px; }

.why-list { display: flex; flex-direction: column; gap: 24px; }

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.why-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

.why-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.why-item h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--dark); }
.why-item p { font-size: 0.9rem; color: var(--gray); }

/* =========================================
   GALLERY
   ========================================= */
#gallery { background: var(--dark); }
.gallery-header { margin-bottom: 48px; }
.gallery-header .section-title { color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:first-child img { min-height: 444px; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,80,10,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 2rem;
  color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* =========================================
   TESTIMONIALS
   ========================================= */
#testimonials {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#testimonials::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: -20px;
  font-family: var(--font-display);
  font-size: 36rem;
  color: var(--light-gray);
  line-height: 1;
  z-index: 0;
  user-select: none;
}

.testimonials-header { margin-bottom: 56px; position: relative; z-index: 1; }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--dark);
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 40px;
  width: 48px; height: 4px;
  background: var(--orange);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--orange);
  font-size: 1.1rem;
}

.testimonial-text {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
}
.author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.author-location { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* =========================================
   SERVICE AREA
   ========================================= */
#service-area {
  background: var(--orange);
  padding: 80px 0;
  text-align: center;
}
#service-area .section-label { color: var(--white); justify-content: center; }
#service-area .section-label::before { background: var(--white); }
#service-area h2 { color: var(--white); margin-bottom: 24px; }
#service-area p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 700px; margin: 0 auto 40px; }

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-tag {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================
   CONTACT
   ========================================= */
#contact { background: var(--dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title { color: var(--white); margin-bottom: 20px; }
.contact-info p { color: rgba(255,255,255,0.55); margin-bottom: 40px; font-size: 1.05rem; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--orange); }

.contact-item-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}
.contact-item-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 4px;
}
.contact-item-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--dark);
}
.form-subtitle { color: var(--gray); font-size: 0.95rem; margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--light-gray);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  background: var(--white);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 18px;
  margin-top: 8px;
}

.form-note { text-align: center; margin-top: 14px; font-size: 0.82rem; color: var(--gray); }

/* =========================================
   FOOTER
   ========================================= */
#footer { background: var(--black); padding: 64px 0 32px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .logo-main { font-size: 1.5rem; }
.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--orange); }

/* =========================================
   PHONE CTA BAR (MOBILE STICKY)
   ========================================= */
.phone-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--orange);
  z-index: 9999;
  padding: 16px 24px;
  text-align: center;
}
.phone-cta-bar a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-image-wrap { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .phone-cta-bar { display: block; }
  body { padding-bottom: 68px; }
  #hero { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
