/* --- VARIABLES & RESET --- */
:root {
  /* Colors */
  --color-primary: #fdb203; /* Architectural Beige/Gold */
  --color-dark: #083744;
  --color-text: #4a4a4a;
  --color-light: #f9f9f9;
  --color-white: #ffffff;


  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --border-radius: 4px;

  --swiper-navigation-color: var(--color-primary); /* Your custom color */
  --swiper-pagination-color: var(--color-primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }

.text-white { color: var(--color-white); }
.text-white h3, .text-white h4 { color: var(--color-white); }

.subtitle {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 12px 30px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-top: var(--spacing-md);
}

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

/* --- HEADER --- */
.site-header {
  background: var(--color-white);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo img {
  height: 60px; /* Adjust based on actual logo ratio */
  width: auto;
  filter: brightness(0)
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

.btn-nav {
  border: 1px solid var(--color-dark);
  padding: 8px 20px;
}

.btn-nav:hover {
  background: var(--color-dark);
  color: var(--color-white) !important;
}

/* --- HERO --- */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Fallback background if no image fits, or use one of the project images with overlay */
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.8)), url('../img/APPARTEMENT ROCHELAIS.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
}

.hero h2 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero h2 span {
  font-style: italic;
  font-weight: 400;
  font-size: 2.7rem;
}

.hero-intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- SERVICES --- */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h3 {
  font-size: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: var(--color-white);
  padding: var(--spacing-md);
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.service-card h4 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: 15px;
}

.service-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Ensure perfect centering */
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

/* --- PROJECTS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--spacing-md);
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 350px; /* Fixed height for alignment */
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 20px;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-item:hover .project-info {
  opacity: 1;
}

.project-info h5 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin: 0;
}

/* --- ABOUT --- */
.about-flex {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--border-radius);
  /* Assuming portrait orientation */
  height: 500px;
  width: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-sub-block {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- FOOTER --- */
footer {
  background: var(--color-dark);
  color: #999;
  padding: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col img{
  width: 40px;
  height: 40px;
}
.footer-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
}
.footer-logo {
  filter: brightness(0) invert(1); /* Make logo white if it's black */
  width: 80px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 1px;
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--color-primary);
  padding-top: var(--spacing-sm);
  font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h2 { font-size: 2.5rem; }

  .about-flex { flex-direction: column; }
  .about-image img { height: 300px; }

  .nav-links { display: none; } /* Simple hide for mobile, JS can toggle */
  .burger { display: block; } /* You would style a burger menu here */
}
/* --- PROJECT MODALS --- */
.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white);
  margin: 5% auto;
  padding: var(--spacing-md);
  width: 80%;
  max-width: 1000px;
  border-radius: var(--border-radius);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--color-dark);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close-modal:hover {
  color: var(--color-primary);
}

/* --- SWIPER CAROUSEL --- */
.swiper {
  width: 100%;
  height: 500px; /* Larger view for carousel */
  margin: var(--spacing-md) 0;
  border-radius: var(--border-radius);
  background-color: #f5f5f5; /* Light background for images with different aspect ratios */
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure whole architect photo is visible */
  border-radius: var(--border-radius);
}

/* Customize Swiper Navigation */
:root {
  --swiper-theme-color: var(--color-primary);
  --swiper-navigation-size: 40px;
}

.modal-description {
  margin-top: var(--spacing-md);
  line-height: 1.8;
}

.modal-description p {
  margin-bottom: var(--spacing-sm);
}

/* Animation for modal */
@keyframes modalFadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

.modal-content {
  animation: modalFadeIn 0.4s;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: var(--spacing-sm);
  }

  .swiper {
    height: 300px; /* Smaller height on mobile */
  }
}
