/* ================================================
   Les Toitures David Pagé — Stylesheet
   2026 Refresh
   ================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Design Tokens ---- */
:root {
  --dark:          #1A1A18;
  --dark-2:        #222220;
  --accent:        #C94B1E;
  --accent-hover:  #AE3E16;
  --gold:          #F2C24E;
  --bg:            #FAFAF7;
  --bg-alt:        #F2EFE9;
  --text:          #2C2C2A;
  --text-muted:    #787870;
  --border:        #E2DED7;

  --font-display:  'DM Sans', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --radius:        14px;
  --radius-sm:     8px;
  --shadow-sm:     0 2px 10px rgba(26,26,24,0.07);
  --shadow-md:     0 10px 36px rgba(26,26,24,0.13);

  --nav-height:    72px;
  --max-width:     1200px;
  --gutter:        clamp(1.25rem, 5vw, 3.5rem);
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-container {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating pill — appears on scroll */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,20,18,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled .nav-menu {
  background: rgba(20,20,18,0.88);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.45rem 1.1rem !important;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-link-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/background.jpg') no-repeat center center / cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,8,0.50) 0%,
    rgba(10,10,8,0.62) 50%,
    rgba(10,10,8,0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 5rem;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-logo {
  width: 100%;
  max-width: 360px;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.45));
  animation: heroReveal 0.9s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  animation: heroReveal 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-regions {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  margin-bottom: 2.25rem;
  animation: heroReveal 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-cta-label {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  animation: heroReveal 0.9s 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-phone {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2.75rem;
  text-shadow: 0 0 48px rgba(242,194,78,0.28);
  transition: color 0.2s;
  animation: heroReveal 0.9s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-phone:hover { color: #fff; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroReveal 0.9s 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.875rem 2.1rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(201,75,30,0.42);
}

.btn-primary-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,75,30,0.48);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.btn-social:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.32);
}

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  transition: color 0.2s;
  animation: scrollBounce 2.5s 1.8s ease infinite;
}

.hero-scroll:hover { color: rgba(255,255,255,0.85); }

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

/* ================================================
   SERVICES
   ================================================ */
.services-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
  max-width: 580px;
  margin: 0 auto;
}

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

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

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

.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

/* Ventilation card — shift down to show full vent */
.service-card:nth-child(2) .service-img-wrap img {
  object-position: center 30%;
}


.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.service-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.service-body p {
  font-size: 0.91rem;
  line-height: 1.68;
  color: var(--text-muted);
  flex: 1;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.brand-logos img {
  height: 26px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.brand-logos a:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* ================================================
   TRUST SECTION
   ================================================ */
.trust-section {
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  background: var(--dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.5rem 1.25rem;
}

.trust-icon {
  width: 62px;
  height: 62px;
  background: rgba(201,75,30,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(201,75,30,0.22);
  flex-shrink: 0;
}

.trust-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.trust-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  position: relative;
  background: var(--dark-2);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
}

.footer-logo-wrap img {
  max-width: 200px;
  opacity: 0.88;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.contact-phone,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  transition: color 0.2s;
}

.contact-phone {
  font-size: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-email {
  font-size: 0.92rem;
  font-weight: 400;
}

.contact-phone:hover,
.contact-email:hover { color: #fff; }

.contact-phone i,
.contact-email i {
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-rbq {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

.back-to-top {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.trust-item.reveal:nth-child(2)   { transition-delay: 0.08s; }
.trust-item.reveal:nth-child(3)   { transition-delay: 0.16s; }
.trust-item.reveal:nth-child(4)   { transition-delay: 0.24s; }

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-container {
    width: 100%;
    justify-content: flex-end;
    padding: 0 var(--gutter);
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(22, 22, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.85rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }

  .nav-link:hover {
    background: transparent;
    color: #fff;
  }

  .nav-link-cta {
    margin-top: 0.75rem;
    text-align: center;
    padding: 0.85rem 1.5rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .back-to-top {
    bottom: 1.5rem;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn-primary-cta,
  .btn-social {
    width: 100%;
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
