/* ============================================
   MAÇONNERIES ALAIN LEPAGE INC.
   Color Scheme: Stone & Slate
   Primary: #2C3E50 (slate dark)
   Accent: #C8732A (terracotta/brick orange)
   Warm bg: #F5F0EA (warm sand)
   ============================================ */

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

:root {
  --slate: #2C3E50;
  --slate-light: #3D5166;
  --accent: #C8732A;
  --accent-dark: #A85C1E;
  --accent-light: #E8924D;
  --sand: #F5F0EA;
  --sand-dark: #EBE3D7;
  --stone: #8B7355;
  --text: #1A1A1A;
  --text-soft: #5A5A5A;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,115,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-outline-sm {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--accent);
  color: var(--accent-light);
  transition: all var(--transition);
}
.btn-outline-sm:hover {
  background: var(--accent);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* LANG BAR */
.lang-bar {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 0;
}
.lang-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active, .lang-btn:hover {
  color: var(--accent-light);
}

/* HEADER */
#header {
  position: fixed;
  top: 32px;
  left: 0; right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}
#header.scrolled {
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}
#header.scrolled .logo-name,
#header.scrolled .logo-inc { color: var(--slate); }
#header.scrolled nav a { color: var(--slate); }
#header.scrolled nav a:hover { color: var(--accent); }
#header.scrolled nav a.nav-cta { color: var(--white); }
#header.scrolled .hamburger span { background: var(--slate); }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.logo-inc {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}
nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
nav a.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
}
nav a.nav-cta:hover { background: var(--accent-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,62,80,0.85) 0%,
    rgba(44,62,80,0.60) 60%,
    rgba(200,115,42,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,115,42,0.25);
  border: 1px solid rgba(200,115,42,0.6);
  color: #E8A96D;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-highlight { color: var(--accent-light); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.hero-scroll a:hover { color: var(--white); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* STATS BAR */
.stats-bar {
  background: var(--slate);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(200,115,42,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }
.section-header.light .section-tag {
  background: rgba(200,115,42,0.25);
  color: var(--accent-light);
}

/* SERVICES */
.services {
  padding: 100px 0;
  background: var(--sand);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  height: 200px;
  overflow: hidden;
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body {
  padding: 24px;
}
.service-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.service-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 10px;
}
.service-body p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* GALLERY */
.gallery-section {
  padding: 100px 0;
  background: var(--white);
}
.gallery-section .container { margin-bottom: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 4px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,62,80,0.85));
  color: var(--white);
  padding: 32px 20px 16px;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ABOUT */
.about {
  padding: 100px 0;
  background: var(--sand);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
}
.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid var(--sand);
  box-shadow: var(--shadow);
}
.about-img-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-badge-float {
  position: absolute;
  top: 32px;
  left: -24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.about-badge-txt {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 24px;
  line-height: 1.25;
}
.about-content p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-list {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.about-list li svg { color: var(--accent); flex-shrink: 0; }

/* TESTIMONIALS */
.testimonials {
  padding: 100px 0;
  background: var(--slate);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(200,115,42,0.4);
  transform: translateY(-4px);
}
.stars {
  color: var(--accent-light);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* CONTACT */
.contact {
  padding: 100px 0;
  background: var(--sand);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 20px;
  line-height: 1.25;
}
.contact-info > p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-item a, .contact-item span {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.contact-item a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,115,42,0.12);
}
.form-group textarea { resize: vertical; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d4edda;
  color: #155724;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 500;
}

/* FOOTER */
.footer {
  background: #1A2535;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links ul, .footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-services li { font-size: 14px; }
.footer-contact p {
  font-size: 15px;
  margin-bottom: 8px;
}
.footer-contact a {
  color: var(--accent-light);
  font-size: 18px;
  font-weight: 700;
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; }

/* FLOAT CALL BUTTON */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(200,115,42,0.5);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse-ring 2.5s infinite;
}
.float-call:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(200,115,42,0.5), 0 6px 24px rgba(200,115,42,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(200,115,42,0), 0 6px 24px rgba(200,115,42,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(200,115,42,0), 0 6px 24px rgba(200,115,42,0.4); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { max-width: 580px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  #header { top: 28px; }
  nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--slate);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  nav.open { display: flex; }
  nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  nav a { font-size: 22px; }
  nav a::after { display: none; }
  .hamburger { display: flex; z-index: 1000; position: relative; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-content { padding-top: 140px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-img-accent { right: 0; bottom: -24px; width: 140px; height: 140px; }
  .about-badge-float { left: 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .btn { padding: 13px 22px; }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item { height: 220px; }
}
