:root {
  --primary: #5B3A1A;
  --dark: #3D2813;
  --cream: #F8F4EF;
  --white: #FFFFFF;
  --border: #E6DDD2;
  --text-muted: #7a6f63;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: var(--dark);
}

a { text-decoration: none; }

.text-primary-brand { color: var(--primary) !important; }
.bg-cream { background-color: var(--cream); }
.bg-dark-brand { background-color: var(--dark); }

/* ---------------- Preloader ---------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Navbar ---------------- */
.navbar-brand-wrap { display: flex; align-items: center; gap: 12px; }
.navbar-brand-wrap img { height: 48px; width: 48px; object-fit: contain; }
.brand-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--dark); line-height: 1.1; letter-spacing: .5px; }
.brand-subtitle { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

.main-navbar {
  background: var(--white);
  padding: 0.6rem 0;
  transition: box-shadow .3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-navbar.scrolled { box-shadow: 0 4px 18px rgba(61,40,19,0.08); }

.main-navbar .nav-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0.7rem;
  position: relative;
  padding: 0.5rem 0 !important;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--primary); }
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--primary);
}

.btn-call-navbar {
  background: var(--dark);
  color: var(--white);
  border-radius: 50px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .25s ease, transform .25s ease;
}
.btn-call-navbar:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */
.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #E9D6AC;
  background-image:
    linear-gradient(90deg,
      rgba(233, 214, 172, 1) 0%,
      rgba(224, 199, 148, 0.85) 28%,
      rgba(201, 173, 110, 0.4) 48%,
      rgba(201, 173, 110, 0.08) 68%,
      rgba(201, 173, 110, 0) 85%),
    url("../images/danvinci.jpg");
  background-size: 65% auto;
  background-repeat: no-repeat;
  background-position: 100% center;
  image-rendering: -webkit-optimize-contrast;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(91,58,26,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6;
}

.hero-heading {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.hero-heading em { color: var(--primary); font-style: italic; }
.hero-subtext { color: var(--text-muted); font-size: 1.05rem; margin: 1.2rem 0 1.8rem; }

.btn-brand-solid {
  background: var(--dark);
  color: var(--white);
  border-radius: 50px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
  border: 1px solid var(--dark);
}
.btn-brand-solid:hover { background: var(--primary); border-color: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-brand-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}
.btn-brand-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); transform: translateY(-2px); }

/* ---------------- Section Labels ---------------- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}
.section-label::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 2px;
  background: var(--primary);
}
.section-title { font-size: 2.1rem; font-weight: 700; }
.section-title em { color: var(--primary); font-style: italic; }

/* ---------------- About / Features ---------------- */
.feature-icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.feature-item { display: flex; gap: 16px; margin-bottom: 1.6rem; }
.feature-item h6 { font-weight: 700; font-size: 0.85rem; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.vertical-divider { width: 1px; background: var(--border); }

@media (min-width: 992px) {
  .service-col-5 { flex: 0 0 20%; max-width: 20%; }
}

/* ---------------- Service Cards ---------------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(61,40,19,0.1); }
.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}
.service-card h6 { font-weight: 700; font-size: 0.9rem; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 0.7rem; }
.service-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }

/* ---------------- Why Choose Us ---------------- */
.why-choose-section {
  background:
    linear-gradient(rgba(61,40,19,0.88), rgba(61,40,19,0.92)),
    url("../images/creation-of-adam.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.why-choose-section .section-label { color: #D8B992; }
.why-choose-section .section-label::after { background: #D8B992; }
.why-item { text-align: center; padding: 0 1rem; }
.why-icon-circle {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.2rem;
}
.why-item h6 { color: var(--white); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.5rem; }
.why-item p { color: rgba(255,255,255,0.7); font-size: 0.82rem; margin-bottom: 0; }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
}
.testimonial-card .stars { color: #D8A93B; margin-bottom: 1rem; }
.testimonial-card p.review { font-style: italic; color: var(--dark); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; margin-right: 12px;
  background: var(--border);
}

/* ---------------- Contact CTA ---------------- */
.contact-cta {
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
}

/* ---------------- Footer ---------------- */
footer.site-footer { background: var(--cream); padding: 3.5rem 0 0; border-top: 1px solid var(--border); }
footer .footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
footer p, footer li { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom { background: var(--dark); color: rgba(255,255,255,0.7); padding: 1rem 0; font-size: 0.8rem; margin-top: 2.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.9); }

/* ---------------- Floating Buttons ---------------- */
.floating-btns { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.floating-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .25s ease;
}
.floating-btn:hover { transform: scale(1.08); color: var(--white); }
.floating-btn.whatsapp { background: #25D366; }
.floating-btn.call { background: var(--primary); }
.back-to-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: none;
}

/* ---------------- Inner Page Hero ---------------- */
.page-hero {
  background: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.4rem; }
.breadcrumb-brand a { color: var(--text-muted); }
.breadcrumb-brand .active { color: var(--primary); }

/* ---------------- Generic Cards ---------------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.info-card:hover { box-shadow: 0 12px 26px rgba(61,40,19,0.08); transform: translateY(-4px); }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(91,58,26,0.12);
}
label.form-label { font-size: 0.82rem; font-weight: 600; color: var(--dark); }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; }

/* ---------------- 404 ---------------- */
.error-page { padding: 6rem 0; text-align: center; }
.error-page h1 { font-size: 7rem; color: var(--primary); }

/* ---------------- Admin Panel ---------------- */
.admin-sidebar {
  background: var(--dark);
  min-height: 100vh;
  color: var(--white);
  width: 250px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  padding: 1.5rem 1rem;
  z-index: 1000;
}
.admin-sidebar .brand { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 2rem; display: block; color: var(--white); }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.75);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--primary); color: var(--white); }
.admin-content { margin-left: 250px; padding: 2rem; background: var(--cream); min-height: 100vh; }
.admin-stat-card { background: var(--white); border-radius: 14px; padding: 1.5rem; border: 1px solid var(--border); }
.admin-stat-card .value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.admin-table { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.badge-status-pending { background: #F0A500; }
.badge-status-confirmed { background: #2E86AB; }
.badge-status-completed { background: #2E8B57; }
.badge-status-cancelled { background: #B33951; }

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 520px;
    background-position: 65% center;
  }
  .hero-heading { font-size: 2.2rem; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

@media (max-width: 767.98px) {
  .hero-heading { font-size: 1.9rem; }
  .why-item { margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 420px;
    background-position: 60% top;
    background-image:
      linear-gradient(180deg,
        rgba(248,243,234,.85) 0%,
        rgba(248,243,234,.6) 50%,
        rgba(248,243,234,.3) 100%),
      url("../images/danvinci.jpg");
  }
}