/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1B263B;
  --green: #1E3D32;
  --burgundy: #8B1E2D;
  --cream: #F5F1E8;
  --beige: #D9D2C3;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cinzel', serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo-wrapper {
  position: relative;
  margin-bottom: 48px;
  animation: preloaderLogoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo-wrapper img {
  height: 120px;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(201, 169, 110, 0.3));
}

.preloader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #e0c88a, var(--gold));
  border-radius: 2px;
  animation: preloaderProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.5);
}

.preloader-text {
  margin-top: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(201, 169, 110, 0.6);
  animation: preloaderTextFade 1.5s ease-in-out infinite alternate;
}

body.loading {
  overflow: hidden;
}

@keyframes preloaderLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

@keyframes preloaderProgress {
  0% {
    width: 0%;
  }

  30% {
    width: 40%;
  }

  60% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

@keyframes preloaderTextFade {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.8;
  }
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background: rgba(27, 38, 59, 0.95) !important;
  backdrop-filter: blur(12px);
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-custom.scrolled {
  padding: 6px 0;
  box-shadow: var(--shadow);
}

.navbar-custom .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(1.1);
}

.navbar-custom.scrolled .navbar-logo {
  height: 55px;
}

.navbar-custom .nav-link {
  color: rgba(245, 241, 232, 0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px !important;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-custom .nav-link:hover {
  color: var(--gold) !important;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: calc(100% - 32px);
}

.navbar-custom .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler {
  border: 1px solid var(--gold) !important;
  padding: 4px 8px;
}

.navbar-toggler-icon {
  filter: brightness(2);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.85), rgba(30, 61, 50, 0.8)),
    url('../img/hero-sofa.png') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.1), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border: 2px solid var(--gold);
  transition: var(--transition);
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border: 2px solid var(--gold);
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== SECTION STYLES ===== */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto;
}

.bg-cream {
  background: var(--cream);
}

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

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

/* ===== CARDS ===== */
.feature-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--gold);
}

.feature-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ===== SERVICE CARD ===== */
.service-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: none;
  border-radius: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: var(--transition);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card h5 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: #666;
}

.service-card .btn-link {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
}

.service-card .btn-link:hover {
  color: var(--burgundy);
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--navy), var(--green));
  padding: 80px 0;
  color: var(--white);
}

.stat-item h2 {
  font-size: 3rem;
  color: var(--gold);
  font-weight: 800;
}

.stat-item p {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* ===== PROJECTS ===== */
.project-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(27, 38, 59, 0.9));
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-overlay h5 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.project-overlay p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

/* Filter Buttons */
.filter-btn {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 24px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 4px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--gold);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .quote {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.testimonial-card .location {
  font-size: 0.8rem;
  color: var(--gold);
}

/* Slower Carousel Transition */
#testimonialCarousel .carousel-item {
  transition: transform 1.5s ease-in-out;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(139, 30, 45, 0.9), rgba(27, 38, 59, 0.9)),
    url('../img/headboard-bedroom.png') center/cover;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--beige);
  border-radius: 0;
  padding: 12px 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.contact-info-box {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-box h4 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.contact-info-box .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.contact-info-box .info-item i {
  color: var(--gold);
  margin-top: 4px;
}

.contact-info-box .info-item p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition);
  font-size: 1rem;
}

.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h5 {
  color: var(--navy);
  font-size: 1rem;
}

.timeline-content .year {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== TEAM ===== */
.team-card {
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin-bottom: 1rem;
}

.team-card h5 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.team-card p {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.9), rgba(30, 61, 50, 0.85)),
    url('../img/workshop.png') center/cover;
  padding: 160px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.05rem;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.breadcrumb-custom a {
  color: var(--gold);
}

.breadcrumb-custom span {
  opacity: 0.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer h5 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Cinzel', serif;
}

.footer p,
.footer li {
  font-size: 0.88rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--navy);
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BEFORE/AFTER ===== */
.before-after {
  display: flex;
  gap: 4px;
  margin-top: 1rem;
}

.before-after img {
  width: 50%;
  height: 150px;
  object-fit: cover;
}

.before-after .label {
  position: absolute;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* ===== MAP PLACEHOLDER ===== */
.map-section {
  width: 100%;
  background: var(--cream);
}

.map-header {
  padding: 2.5rem 1rem 1.5rem;
}

.map-embed {
  width: 100%;
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 450px;
  display: block;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: 80%;
    margin-left: 50px !important;
  }

  .page-header {
    padding: 140px 0 60px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .stat-item h2 {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .footer {
    padding: 50px 0 0;
  }

  .timeline-content {
    width: 75%;
  }
}

@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-gold,
  .btn-outline-gold {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}