/*
 * Global stylesheet for the QanaQ website.
 *
 * This file defines a modern, responsive layout inspired by the principles of
 * sustainable architecture. Colour variables are declared at the root to
 * enable easy theming and to ensure sufficient contrast for accessibility.
 */

/* Use the rounded and modern Manrope font to mirror the example typography */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* Colour palette */
:root {
  /* Updated palette inspired by QanaQ’s 2025/2026 visual identity (deep blues and turquoise) */
  --primary-color: #0A2E6E;      /* deep navy for headings and accents */
  --secondary-color: #0075C9;    /* vibrant medium blue for highlights and buttons */
  --accent-color: #E6F2FB;       /* very pale blue for alternating section backgrounds */
  --bg-color: #F4F8FD;           /* off‑white with a hint of blue for the page background */
  --text-color: #0A1E3A;         /* dark blue for comfortable reading */
  --link-color: #0075C9;         /* medium blue for hyperlinks */
  --cta-color: #1FCFE8;          /* bright turquoise for call‑to‑action buttons */
  --white: #ffffff;
}

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

body {
  /* Apply the Manrope font for all copy */
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-color);
}

/* Container helps centre content and impose a max width */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Flex utility classes */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header and navigation */
header {
  /* Darker header to provide contrast with the white logo and to anchor the top of the page */
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Increase vertical padding so the larger logo sits comfortably and the navigation feels spacious */
  /* Increase vertical padding so the larger logo sits comfortably and the navigation feels spacious */
  padding: 1.5rem 0;
}

nav .logo img {
  /* Further enlarge the logo so it stands out against the navigation bar */
  max-height: 100px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  /* Slightly increase the spacing between navigation items for improved readability */
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  color: var(--white);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--cta-color);
}

/* Mobile navigation */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span,
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  /* Match the header contrast by colouring the hamburger bars white */
  background-color: var(--white);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

nav.open .nav-toggle span {
  background-color: transparent;
}

nav.open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

nav.open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    /* Use the primary colour for the mobile dropdown so the white logo and links remain visible */
    background-color: var(--primary-color);
    flex-direction: column;
    width: 200px;
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  nav ul li a {
    color: var(--white);
  }
  nav.open ul {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Remove the dark overlay so the photography remains vibrant */
  background: transparent;
  z-index: 1;
}

/* Highlight text span used in hero headlines */
.highlight {
  color: var(--cta-color);
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* Add a subtle shadow to improve readability on photos */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.75rem auto 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  /* Pill‑shaped buttons evoke the new 2026 design language */
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.btn-primary {
  background-color: var(--cta-color);
  color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  /* On hover/focus, invert colours for clarity */
  background-color: var(--secondary-color);
  color: var(--white);
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background-color: var(--accent-color);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 280px;
  max-width: 350px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.feature i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Two column sections */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.columns .col {
  flex: 1 1 500px;
}

.columns img {
  max-width: 100%;
  border-radius: 8px;
}

/* Testimonials */
.testimonial {
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  color: var(--primary-color);
}

.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Counters */
.counters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.counter {
  text-align: center;
}

.counter span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.counter p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer a {
  color: var(--accent-color);
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--white);
}

footer .socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .socials a {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: color 0.3s;
}

footer .socials a:hover {
  color: var(--white);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Add vertical padding around the image in the Travaux engagés section to separate it from the feature cards */
.travaux-image {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Contact form styles */
.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
}

/* FAQ section styles */
.faq-section details {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-section summary {
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
}

.faq-section p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Blog posts styles */
.posts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.post-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  max-width: 360px;
}

.post-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.post-card p {
  font-size: 0.95rem;
  color: var(--text-color);
}

.post-card a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.post-card a:hover {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }
  .columns {
    flex-direction: column;
  }
  .feature {
    max-width: 100%;
  }
}