﻿/* TRADISOL - Luxury Tiling Showcase */
/* Variables & Design System */
:root {
  /* Colors - Minimalist, elegant, luxury */
  --bg-color: #F9F9F9;
  --text-dark: #222222;
  --text-light: #FFFFFF;
  --accent-color: #E2DCD3;
  /* Soft Beige */
  --accent-dark: #A39B8E;
  /* Deeper Grey-Beige for text and accents */
  --primary-color: #111111;
  /* Soft Deep Black */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 3%;
  /* Increased padding for airy, minimalist feel */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --max-width: 1850px;
  /* Slightly narrower for a more controlled, elegant layout */
}

/* Base Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--primary-color);
  letter-spacing: 0.02em;
  /* Slightly wider letter spacing */
}

p {
  font-size: 1.05rem;
  /* Slightly smaller for elegance */
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 0 auto 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: block;
  width: fit-content;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.btn:hover {
  color: var(--text-light);
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary::before {
  background-color: var(--text-light);
}

.btn-primary:hover {
  color: var(--primary-color);
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Typography Enhancements for Luxury feel */
.text-accent {
  color: var(--accent-dark);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* ======================= HEADER ======================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled .logo-text,
.header.scrolled .nav-link,
.header.scrolled .mobile-menu-btn span {
  color: var(--primary-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  height: 120px;
  /* Adjust based on logo proportions */
  width: auto;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
  height: 80px;
  /* Slightly smaller when scrolled */
}

.footer-logo-img {
  height: 80px;
  filter: grayscale(100%) brightness(200%);
  /* Optional: makes it white/neutral for dark footer */
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-contact {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
}

.header.scrolled .btn-contact {
  border-color: var(--primary-color);
}

.btn-contact::after {
  display: none;
}

.btn-contact:hover {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  border-color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
  left: 0;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 18px;
}

.mobile-menu-btn.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}


/* ======================= HERO ======================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  text-align: left;
  width: 100%;
  padding-top: 5rem;
}

.hero-title {
  color: var(--text-light);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: #E0E0E0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn-outline {
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline::before {
  background-color: var(--text-light);
}

.btn-outline:hover {
  color: var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@media (max-width: 992px) {
  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .header.scrolled .mobile-menu-btn.open span {
    background-color: var(--text-light);
  }

  .header.scrolled .nav-link {
    color: var(--text-light);
  }
}

/* ======================= PRESENTATION (ABOUT) ======================= */
.about {
  background-color: var(--bg-color);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 4px;
  /* overflow: hidden removed so the badge is not clipped */
}

.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.8s ease;
}

.about-image:hover .about-img {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-heading);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  /* Softer shadow */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Subtle border instead of thick background border */
  backdrop-filter: blur(5px);
}

.badge-number {
  font-size: 2.5rem;
  /* Clean size */
  font-weight: 300;
  /* Lighter font weight for elegance */
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* More spaced out */
}

.about-content h3 {
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 300;
}

.features-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon {
  color: var(--accent-dark);
  font-size: 1.4rem;
  margin-top: 5px;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-dark);
  /* Using softer dark */
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.feature-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #777;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 600px;
    margin: 0 auto 3rem;
  }
}

@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 400px;
  }

  .about-badge {
    width: 120px;
    height: 120px;
    bottom: -10px;
    right: -10px;
  }

  .badge-number {
    font-size: 2rem;
  }
}

/* ======================= SERVICES ======================= */
.bg-dark {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.bg-dark .section-title {
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background-color: var(--text-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  height: 750px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  opacity: 0.6;
}

.service-card:hover .service-img {
  transform: scale(1.1);
  opacity: 0.8;
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-5px);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.service-desc {
  color: #CCC;
  font-size: 0.95rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
  height: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.service-card:hover .service-desc {
  transform: translateY(0);
  opacity: 1;
  height: auto;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-card {
    height: 400px;
  }

  .service-desc {
    transform: translateY(0);
    opacity: 1;
    height: auto;
    margin-top: 1rem;
  }

  .service-img {
    opacity: 0.5;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ======================= ACHIEVEMENTS (GALLERY) ======================= */
.gallery {
  background-color: var(--bg-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 13, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
  opacity: 0;
}

.gallery-title {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s;
  opacity: 0;
}

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-title {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 250px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(2) {
    grid-column: span 2;
  }

  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }

  .gallery-overlay {
    opacity: 1;
    background-color: rgba(13, 13, 13, 0.4);
    backdrop-filter: none;
  }

  .gallery-icon,
  .gallery-title {
    opacity: 1;
    transform: translateY(0);
    margin-top: auto;
    padding: 1rem;
  }

  .gallery-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
  }

  .gallery-icon {
    display: none;
  }
}

/* ======================= CTA SECTION ======================= */
.cta-section {
  background-color: var(--accent-color);
  color: var(--primary-color);
  text-align: center;
  padding: 5rem 5%;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cta-section .btn {
  margin-top: 2rem;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cta-section .btn::before {
  background-color: var(--primary-color);
}

.cta-section .btn:hover {
  color: var(--text-light);
}


/* ======================= CONTACT ======================= */
.contact {
  background-color: var(--bg-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-top: 5px;
}

.contact-text h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.contact-text p {
  margin-bottom: 0;
  color: #666;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #E0E0E0;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form {
  background-color: #FFF;
  padding: 3.5rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 0;
  /* Remove side padding for cleaner look */
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #E0E0E0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 1px 0 0 var(--primary-color);
  /* Elegant focus effect */
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  width: 100%;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 2rem 1.5rem;
  }
}


/* ======================= FOOTER ======================= */
.footer {
  background-color: var(--primary-color);
  color: #999;
  padding: 4rem 5% 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-logo .logo-text {
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ======================= TESTIMONIALS ======================= */
.testimonials {
  background-color: #f4f1ee;
  /* Off-white with a hint of beige */
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  text-align: center;
}

.google-badge {
  background-color: #FFF;
  padding: 1.25rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.google-score {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stars {
  color: #FBBC04;
  /* Google Star Color */
  display: flex;
  gap: 2px;
}

.google-meta {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-logo-small {
  height: 18px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: #FFF;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-stars {
  color: #FBBC04;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #F0F0F0;
  padding-top: 1.5rem;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.author-source {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 80px 5%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 2rem;
  }
}

/* ======================= FORM FEEDBACK STATES ======================= */
.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 1.25rem;
  line-height: 1.5;
}

.form-feedback i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-success {
  background-color: #f0faf4;
  border: 1px solid #86efac;
  color: #166534;
}

.form-success i {
  color: #22c55e;
}

.form-error {
  background-color: #fff5f5;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.form-error i {
  color: #ef4444;
}

/* Bouton désactivé pendant l'envoi */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#submit-btn:disabled::before {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* --- Legal Page Styles --- */
.legal-page {
  background-color: var(--white);
  padding-top: 100px;
  /* Space for fixed navbar */
}

.legal-hero {
  background-color: var(--secondary-color);
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-hero h1 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.legal-content {
  padding: 100px 0;
}

.legal-block {
  margin-bottom: 4.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.legal-block:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2.25rem;
  left: 0;
  width: 50px;
  height: 1px;
  background-color: var(--accent-color);
  opacity: 0.3;
}

.legal-block h2 {
  font-family: var(--font-primary);
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.legal-block p {
  color: #555;
  line-height: 2;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.legal-block strong {
  color: var(--text-color);
  font-weight: 600;
}

.legal-block ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.legal-block li {
  color: #555;
  line-height: 2;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.legal-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* --- FAQ Section --- */
.faq-list {
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-color);
}

.faq-toggle {
  color: var(--accent-color);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  background-color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 0.5rem;
}

.small-container {
  max-width: 800px;
}

/* --- Error 404 Section --- */
.error-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.error-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

.error-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.error-cta .btn {
  padding: 1.2rem 3rem;
}

/* --- UX Optimizations --- */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent);
}

.gallery-item {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--accent);
  text-decoration: underline;
}