/* ============================================
   HbbL — Design+Build — Modern Site
   ============================================ */

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

:root {
  --navy: #0b1a2e;
  --navy-light: #132743;
  --copper: #c8956c;
  --copper-light: #dbb08e;
  --gold: #d4a66a;
  --white: #ffffff;
  --off-white: #f5f2ee;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #666;
  --text: #1a1a1a;
  --text-light: #555;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.15rem; font-family: var(--font); font-weight: 600; }

.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 1.5rem; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(11, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav.scrolled .nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 220px;
  background: rgba(11, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  padding: 0.8rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { color: var(--copper); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 26, 46, 0.88) 0%, rgba(19, 39, 67, 0.82) 100%),
    url('images/openspace.jpeg') center/cover no-repeat;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content .section-label { color: var(--copper-light); }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-text {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Geometric decoration */
.hero-deco {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.hero-deco-shape {
  position: absolute;
  border: 2px solid rgba(200, 149, 108, 0.2);
  border-radius: 4px;
  animation: float 8s ease-in-out infinite;
}

.hero-deco-shape:nth-child(1) {
  width: 300px; height: 300px;
  top: 50px; left: 50px;
  transform: rotate(15deg);
}

.hero-deco-shape:nth-child(2) {
  width: 200px; height: 200px;
  top: 150px; left: 150px;
  transform: rotate(-10deg);
  animation-delay: -2s;
  border-color: rgba(200, 149, 108, 0.12);
}

.hero-deco-shape:nth-child(3) {
  width: 120px; height: 120px;
  top: 200px; left: 200px;
  transform: rotate(30deg);
  animation-delay: -4s;
  background: rgba(200, 149, 108, 0.05);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-20px) rotate(18deg); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 149, 108, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
}

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

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 26, 46, 0.3);
}

/* --- About Section --- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
}

.about-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 26, 46, 0.3) 0%, rgba(19, 39, 67, 0.1) 100%),
    url('images/locaux_hb.png') center/cover no-repeat;
  border-radius: 8px;
}

.about-visual-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 200px; height: 200px;
  border: 3px solid var(--copper);
  border-radius: 8px;
  opacity: 0.3;
}

.about-visual-year {
  position: absolute;
  bottom: 30px; left: 30px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(200, 149, 108, 0.2);
  line-height: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-stat {
  padding: 1.2rem;
  border-left: 3px solid var(--copper);
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* --- Services Section --- */
.services { background: var(--off-white); }

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 149, 108, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.service-card h3 { margin-bottom: 1rem; }

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-card .btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

/* --- Clients Section --- */
.clients { background: var(--white); padding: 5rem 0; }

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all var(--transition);
  filter: grayscale(100%) opacity(0.6);
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
  border-color: var(--copper);
  box-shadow: var(--shadow);
}

.client-logo img {
  height: 35px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

/* --- Engagement / Promise Section --- */
.engagement {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.engagement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 80%, rgba(200, 149, 108, 0.1) 0%, transparent 50%);
}

.engagement .container { position: relative; z-index: 2; }

.engagement .section-title { color: var(--white); }
.engagement .section-subtitle { color: rgba(255,255,255,0.6); }

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.engagement-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.engagement-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200, 149, 108, 0.2);
}

.engagement-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(200, 149, 108, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  font-size: 1.2rem;
}

.engagement-item h4 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.engagement-item p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Contact CTA --- */
.contact-cta {
  background: var(--off-white);
  text-align: center;
}

.contact-cta h2 { margin-bottom: 1rem; }
.contact-cta p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand .nav-logo img { height: 45px; }

.footer-partner img {
  height: 24px;
  width: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer-col a:hover { color: var(--copper); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

.footer-partner:hover { border-color: var(--copper); color: var(--copper); }

/* --- Page Header (Subpages) --- */
.page-header {
  background: var(--navy);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 26, 46, 0.9) 0%, rgba(19, 39, 67, 0.85) 100%),
    url('images/conception-architecture.jpg') center/cover no-repeat;
}

.page-header--design::before {
  background:
    linear-gradient(135deg, rgba(11, 26, 46, 0.9) 0%, rgba(19, 39, 67, 0.85) 100%),
    url('images/conception-design.jpg') center/cover no-repeat;
}

.page-header--travaux::before {
  background:
    linear-gradient(135deg, rgba(11, 26, 46, 0.9) 0%, rgba(19, 39, 67, 0.85) 100%),
    url('images/conception-3d.jpg') center/cover no-repeat;
}

.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.8;
}

/* --- Detail Content --- */
.detail { background: var(--white); }

.detail-content {
  max-width: 800px;
}

.detail-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.detail-feature {
  padding: 1.8rem;
  background: var(--off-white);
  border-radius: 8px;
  border-left: 4px solid var(--copper);
  transition: all var(--transition);
}

.detail-feature:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.detail-feature h4 { margin-bottom: 0.5rem; }

.detail-feature p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Contact Page --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-form {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 8px;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}

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

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

.contact-details { padding: 1rem 0; }

.contact-detail-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-detail-item:last-child { border-bottom: none; }

.contact-detail-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(200, 149, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-detail-item h4 { margin-bottom: 0.3rem; }
.contact-detail-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* --- Legal Page --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 { margin: 2.5rem 0 1rem; color: var(--navy); }
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 300px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-deco { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .detail-features { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11, 26, 46, 0.98);
    padding: 2rem;
    gap: 1.2rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
  }

  .page-header { padding: 8rem 0 3rem; }
}
