/* =========================================
   Global
========================================= */
html, body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

:root {
  --primary-color: #2C2C2C;
  --secondary-color: #F5F1E8;
  --accent-color: #D4A574;
  --text-dark: #2C2C2C;
  --text-light: #666666;
  --white: #FFFFFF;
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(44, 44, 44, 0.8),
    rgba(212, 165, 116, 0.3)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6,
.logo-text,
.navbar-brand,
.offcanvas-title,
.step-number,
.arch-step-number,
.interior-step-number,
.consult-step-number,
.space-step-number,
.guide-tip-number,
.consult-hero-title,
.space-hero-title,
.guide-hero-title,
.arch-hero-title,
.interior-hero-title,
.blog-hero-title,
.about-hero-title,
.blog-detail-title,
.consult-package-price,
.consult-form-header h2,
.consult-process-step h4,
.space-process-step h4,
.space-project-content h4,
.guide-section-title,
.guide-color-content h3,
.guide-material-content h3,
.guide-style-content h3,
.guide-tip-card h3,
.guide-resource-card h3,
.guide-resource-card h3,
.arch-service-card h3,
.interior-service-card h3,
.service-card h3,
.value-card h3 {
  font-family: "Playfair Display", serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.loading {
  opacity: 0.6;
}

[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* =========================================
   Preloader
========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primary-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: var(--white);
}

.logo-animation {
  position: relative;
}

.logo-text {
  display: block;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: logoFadeIn 1.5s forwards;
}

.logo-line {
  width: 0;
  height: 2px;
  background: var(--accent-color);
  margin: 1rem auto;
  animation: lineExpand 1s 0.5s forwards;
}

.logo-subtitle {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: logoFadeIn 1s 1s forwards;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineExpand {
  to { width: 100px; }
}

/* =========================================
   Navbar
========================================= */
.navbar {
  padding: 1.5rem 0;
  transition: 0.4s;
  background: transparent;
  transition: all 0.3s ease-in-out;
}

.navbar-brand {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  color: var(--white);
}

.navbar-nav .nav-link {
  transition: color 0.3s;
  color: var(--white);
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: 0.3s;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-color);
}

.navbar.scrolled .navbar-nav .nav-link {
  color: var(--text-dark);
}

/* Toggler */
.navbar-toggler {
  padding: 0;
  position: relative;
  width: 30px;
  height: 20px;
  border: none;
  background: transparent !important;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  transition: 0.3s;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: inherit;
  transition: 0.3s;
}
.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { bottom: -8px; }

.navbar.scrolled .navbar-toggler-icon {
  background-color: var(--primary-color);
}

/* Toggler animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Offcanvas */
.offcanvas {
  background: var(--primary-color);
  color: var(--white);
  z-index: 99999999 !important;
}
.offcanvas .nav-link {
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.offcanvas-body {
  padding: 2rem 1rem;
}
.offcanvas-body .navbar-nav {
  gap: 0.5rem;
}
.offcanvas-body .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link:focus {
  transform: translateX(5px);
}
.offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}
.offcanvas-header .btn-close:hover {
  opacity: 1;
}

/* Brand text (if used) */
.brand-text { display: block; font-size: 1.5rem; letter-spacing: 0.1em; line-height: 1; }
.brand-subtitle { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.2em; opacity: 0.8; }

/* tighten nav spacing override you added */
.navbar-nav .nav-link {
  margin: 0 0.4rem !important;
}

/* =========================================
   Hero Video
========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.video-bg video,
.video-bg iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   Buttons
========================================= */
.btn {
  text-decoration: none;
  padding: 0.875rem 2rem;
  font-weight: 500;
  border-radius: 20px;
  border: 2px solid transparent;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* =========================================
   Sections + Typography Helpers
========================================= */
.section-padding { padding: 6rem 0; }

.section-header { margin-bottom: 4rem; }

.section-subtitle {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light { background: var(--secondary-color) !important; }
.bg-dark  { background: var(--primary-color) !important; }

/* =========================================
   Stats
========================================= */
.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.stat-item p {
  color: var(--text-light);
  margin: 0;
}

/* =========================================
   Cards / Services
========================================= */
.service-card,
.value-card,
.arch-service-card,
.interior-service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  height: 100%;
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover,
.value-card:hover,
.arch-service-card:hover,
.interior-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   Portfolio Grid + Filter
========================================= */
.portfolio-filter { margin-bottom: 3rem; }

.filter-btn {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 400px;
}

.portfolio-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44,44,44,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio-content {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.4s;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover .portfolio-image img { transform: scale(1.1); }
.portfolio-card:hover .portfolio-content { transform: translateY(0); }

.portfolio-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.portfolio-content p {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* =========================================
   Contact
========================================= */
.contact-info { padding: 2rem; }

.contact-item { margin-bottom: 2.5rem; }
.contact-item h5 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.contact-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(212,165,116,0.25);
}

/* Map container base (you already had) */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Map sizing fix (this is what makes the iframe visible) */
#contact .map-container {
  width: 100%;
  height: 420px; /* adjust to taste */
}
#contact .map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================
   Footer
========================================= */
.footer {
  padding: 4rem 0 2rem;
  color: var(--white);
}
.footer h5 { color: var(--white); font-weight: 600; margin-bottom: 1rem; }
.footer-divider { border-color: rgba(255,255,255,0.2); margin: 2rem 0 1.5rem; }
.footer-copyright { color: rgba(255,255,255,0.7); margin: 0; }

.footer-links,
.categories-list {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a,
.footer-legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-color);
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  justify-content: flex-end;
}

/* =========================================
   Scroll To Top
========================================= */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--white);
}
.scroll-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   NAVBAR LOGO FIX (GLOBAL OVERRIDES)
========================================= */
.navbar-brand {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
}

.navbar-logo {
  height: 100px !important; /* adjust */
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;

  /* Default (hero) = WHITE logo */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Scrolled state = BLACK logo */
.navbar.scrolled .navbar-logo {
  filter: none;
}

/* Optional: tighten navbar height */
.navbar { padding: 0.75rem 0 !important; }
.navbar.scrolled { padding: 0.5rem 0 !important; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 991.98px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.5rem; }

  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .footer-legal {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  /* Offcanvas width */
  .offcanvas.offcanvas-end { width: 300px; }

  /* Prevent navbar from hiding when offcanvas is open */
  .navbar.scrolled {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Mobile nav link behavior */
  .navbar-nav .nav-link::after { display: none; }
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 36px !important;
    max-width: 150px !important;
  }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .section-padding { padding: 2rem 0; }
  .section-title { font-size: 2rem; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form { padding: 1.5rem; }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 2.2rem; }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* =========================================
   Scrollbar
========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--secondary-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.static-page #mainNav {
  background-color: #2C2C2C;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.static-page #mainNav:not(.scrolled) {
  background-color: #2C2C2C;
}

