:root {
  --primary: #d81f26;
  --primary-dark: #9e161b;
  --text: #111827;
  --muted: #5b6475;
  --line: #e5e7eb;
  --bg: #f6f7fb;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 138px;
  height: auto;
  object-fit: contain;
}

.logo-qualibat {
  width: 52px;
  height: auto;
  object-fit: contain;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.logo-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.logo-bcd {
  color: var(--primary);
}

.logo-since {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #263143;
  font-weight: 500;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: 0.25s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(24, 28, 49, 0.88), rgba(191, 96, 106, 0.7)),
    url("../images/service-facade.jpg") center/cover no-repeat;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 34px;
  align-items: center;
  padding: 80px 0 72px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd5d7;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: transparent;
}

.full-btn {
  width: 100%;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff3f3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: var(--white);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card-logo {
  margin-bottom: 18px;
}

.hero-card-logo img {
  width: 160px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
}

.hero-card h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-card li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.trust-bar {
  background: var(--primary);
  color: var(--white);
  position: relative;
  padding: 0;
}

.trust-bar::before,
.diagonal-band::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  background: linear-gradient(120deg, var(--primary), #a8191f);
}

.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 58px 0;
}

.trust-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
}

.trust-item strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-head h2,
.section-copy h2,
.map-card h2,
.process-card h2,
.contact-copy h2,
.diagonal-content h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
  color: #152033;
}

.section-head p,
.section-copy p,
.map-card p,
.process-card p,
.contact-copy p,
.info-panel-box li,
.faq-item p {
  color: var(--muted);
}

.intro-section {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.split-large {
  grid-template-columns: 1.2fr 0.8fr;
}

.info-panel-box,
.map-card-inner,
.process-card,
.contact-form,
.feature-card,
.service-card,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-panel-box {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #fff7f7);
}

.info-panel-box h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.info-panel-box ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-panel-box li {
  padding-left: 18px;
  position: relative;
}

.info-panel-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  overflow: hidden;
}

.service-media {
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service-media-1 {
  background-image: url("../images/service-menuiserie.jpg");
}

.service-media-2 {
  background-image: url("../images/service-facade.jpg");
}

.service-media-3 {
  background-image: url("../images/service-isolation.jpg");
}

.service-media-4 {
  background-image: url("../images/store-interieur.jpg");
}

.service-media-5 {
  background-image: url("../images/store-exterieur.jpg");
}

.service-media-6 {
  background-image: url("../images/pergola.jpg");
}

.service-media-7 {
  background-image: url("../images/service-veranda.jpg");
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
  color: #162135;
}

.service-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

.service-body a {
  color: var(--primary);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
}

.diagonal-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 84px 0;
}

.diagonal-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.diagonal-content h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.diagonal-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.map-card-inner,
.process-card {
  padding: 30px;
  height: 100%;
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 500;
}

.steps span {
  min-width: 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(12, 17, 36, 0.78), rgba(198, 31, 38, 0.64)),
    url("../images/pergola.jpg") center/cover no-repeat;
  padding: 98px 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 700;
  color: #182338;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 1.5rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 24px 22px;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff, #fff7f7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 1.3rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #273246;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d5d9e2;
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(216, 31, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(216, 31, 38, 0.08);
}

.site-footer {
  background: #121212;
  color: rgba(255, 255, 255, 0.84);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 120px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .split-large,
  .contact-grid,
  .features-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid .feature-card:last-child {
    grid-column: span 2;
  }

  .header-inner {
    gap: 16px;
  }

  .logo-image {
    width: 128px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 4%;
    right: 4%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .split-large,
  .contact-grid,
  .cards-grid,
  .features-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card:last-child {
    grid-column: auto;
  }

  .header-inner {
    min-height: 82px;
  }

  .logo {
    max-width: calc(100% - 70px);
  }

  .logo-image {
    width: 110px;
  }

  .logo-qualibat {
    width: 42px;
  }

  .logo-text-wrap {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 54px 0 56px;
  }

  .hero-card {
    padding: 22px;
  }

  .section {
    padding: 72px 0;
  }

  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(94%, var(--container));
  }

  .logo-group {
    gap: 8px;
  }

  .logo-image {
    width: 95px;
  }

  .logo-qualibat {
    width: 34px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .service-media {
    height: 190px;
  }

  .section-head h2,
  .section-copy h2,
  .map-card h2,
  .process-card h2,
  .contact-copy h2,
  .diagonal-content h2 {
    font-size: 1.9rem;
  }

  .footer-logo {
    width: 100px;
  }
}