/* ==========================================
   CSS VARIABLES & GLOBAL RESET
   ========================================== */
:root {
  --primary: #1a1614;
  --primary-light: #2d2420;
  --accent: #c8a27a;
  --accent-dark: #b08968;
  --accent-light: #d4b896;
  --white: #ffffff;
  --off-white: #faf8f5;
  --text: #1a1614;
  --text-light: #5c4f48;
  --text-muted: #8c7d76;
  --border: #e0d5cc;
  --border-light: #ede4db;
  --shadow: 0 4px 20px rgba(26, 22, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 22, 20, 0.12);
  --shadow-xl: 0 20px 60px rgba(26, 22, 20, 0.15);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --section-padding: 5rem 0;
  --container-padding: 2rem;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HARD VIEWPORT FIX: Eliminates left/right page shaking on mobile architectures */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}
p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* INTERACTIVE COMPONENTS */
.btn-primary,
.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-small {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  background: var(--accent);
  color: var(--white);
}

/* ==========================================
    LIGHT CREAM HEADER DESIGN (#EAE7E0)
   ========================================== */
header {
  background: #F7F2E9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(26, 22, 20, 0.06);
  transition: var(--transition);
}
header.scrolled {
  padding: 0.5rem 0;
  background: #e2dfd8;
  box-shadow: 0 4px 20px rgba(26, 22, 20, 0.1);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 6px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(26, 22, 20, 0.04);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
}
.header-social-links a {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.header-social-links a::after {
  display: none;
}
.header-social-links a:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

/* Target hamburger icon securely in light theme layout */
.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
}

/* ==========================================
   UNIFIED CONTACT WORKSPACE LAYOUT
   ========================================== */
.contact-section {
  padding: var(--section-padding);
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.info-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.info-card i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.process-wrapper {
  margin-top: 3rem;
}
.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.step-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}
.form-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--off-white);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c4f48' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.contact-form .submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* ==========================================
   ABOUT US PAGE WITH BACKDROP IMAGE
   ========================================== */
.about-header-bg {
  position: relative;
  /* Uses dynamic backdrop filtering combined with your specific multiBG layer file layout */
  background:
    linear-gradient(rgba(26, 22, 20, 0.75), rgba(26, 22, 20, 0.85)),
    url("../assets/multiBG.webp") center/cover no-repeat !important;
  padding: 8rem 0;
}
.about-header-bg h1 {
  color: var(--white) !important;
}
.about-header-bg p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.about-section {
  padding: var(--section-padding);
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
}
.value-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 10px;
}
.value-card i {
  font-size: 2rem;
  color: var(--accent);
}

/* ==========================================
   PREMIUM DARK FOOTER LAYER
   ========================================== */
footer {
  background: #4F4F4F;
  color: var(--white);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}
.footer-logo {
  height: 55px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  background: transparent;
  opacity: 1;
  visibility: visible;
}
.footer-col p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.social-links a,
.contact-social-links a {
  flex: 0 0 auto;
}
.footer-location a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.6;
}
.footer-location i {
  color: var(--accent);
  margin-top: 0.2rem;
}
.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.form-feedback.success {
  color: #4caf50;
  margin-top: 1rem;
  font-weight: 500;
}

/* SYSTEM RESPONSIVENESS CAPTURE */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  /* Dropdown adjusted smoothly to match the new light styling framework variables */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #eae7e0; 
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(26, 22, 20, 0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: var(--text);
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    background: rgba(26, 22, 20, 0.03);
  }
  .header-social-links {
    width: 100%;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
  }
  .header-social-links a {
    width: 40px;
    padding: 0;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .header-social-links {
    display: none;
  }
}

/* MISC GLOBAL INTERACTION OVERLAYS */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
}
.skip-link {
  position: absolute;
  top: -100px;
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}
#mainContent {
  display: block !important;
  min-height: 60vh;
}

/* SVG logo dark mode adaptation */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo {
  filter: brightness(0) invert(1);
}
