/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { background: #e0e0e0; }

/* PSD Container - Responsive */
.psd-root {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  line-height: 0;
  min-height: 300px;
  background: #e0e0e0;
}

.psd-root img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* CTA Overlay Button */
.cta-overlay {
  position: absolute;
  top: 24.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 2.4%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
}

.cta-overlay:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cta-overlay:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

/* Hamburger Overlay Button - positioned over hamburger icon in header */
.hamburger-overlay {
  position: absolute;
  top: 0.8%;
  right: 2.5%;
  width: 12%;
  height: 2%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.hamburger-overlay:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.hamburger-overlay:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #1a1209;
  border-left: 1px solid rgba(180, 150, 100, 0.4);
  z-index: 1001;
  transition: right 0.35s ease;
  overflow-y: auto;
  direction: rtl;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.nav-drawer.active {
  right: 0;
}

.nav-drawer-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  color: #a0896e;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.nav-drawer-close:hover {
  background: rgba(180, 150, 100, 0.15);
  color: #d4b88c;
}

.nav-list {
  list-style: none;
  padding: 70px 24px 24px;
}

.nav-list li {
  border-bottom: 1px solid rgba(180, 150, 100, 0.12);
}

.nav-link {
  display: block;
  padding: 16px 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #d4b88c;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #efe0cc;
  padding-right: 8px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Modal Content */
.modal-content {
  background: #1a1209;
  border: 1px solid rgba(180, 150, 100, 0.4);
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  direction: rtl;
  text-align: right;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.35s ease;
}

.modal-content h2 {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #d4b88c;
  font-size: 28px;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.4;
}

.modal-content .modal-subtitle {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #a0896e;
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: none;
  border: none;
  color: #a0896e;
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(180, 150, 100, 0.15);
  color: #d4b88c;
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #c4a87a;
  font-size: 14px;
  font-weight: 500;
}

.form-group label .required {
  color: #d48c8c;
  margin-right: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(180, 150, 100, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  color: #efe0cc;
  font-size: 15px;
  direction: rtl;
  transition: all 0.25s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(180, 160, 130, 0.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4b88c;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(212, 184, 140, 0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c4a87a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

.form-group select option {
  background: #1a1209;
  color: #efe0cc;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row .form-group {
  flex: 1;
}

/* Submit Button */
.form-submit {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #8b6d3f, #a07c4e);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.form-submit:hover {
  background: linear-gradient(135deg, #a07c4e, #b8935e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 109, 63, 0.35);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success / Error Messages */
.form-message {
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 15px;
  display: none;
  line-height: 1.6;
}

.form-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.12);
  color: #8bc78e;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.12);
  color: #e08888;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(180, 150, 100, 0.3);
  border-radius: 3px;
}

/* Contact Footer */
.contact-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 18, 9, 0.96);
  border-top: 1px solid rgba(180, 150, 100, 0.35);
  padding: 12px 20px;
  z-index: 998;
  direction: rtl;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.contact-footer-inner {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link,
.contact-address {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #d4b88c;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #efe0cc;
}

.contact-divider {
  color: rgba(180, 150, 100, 0.5);
  font-size: 14px;
  user-select: none;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-right: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(180, 150, 100, 0.15);
  color: #d4b88c;
  transition: all 0.25s ease;
}

.social-link:hover {
  background: rgba(212, 184, 140, 0.3);
  color: #efe0cc;
  transform: scale(1.08);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 68px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Mobile adjustments for nav */
@media (max-width: 600px) {
  .nav-drawer {
    width: 85%;
    max-width: 300px;
  }

  .hamburger-overlay {
    top: 0.6%;
    right: 2%;
    width: 16%;
    height: 2.2%;
  }
}

/* Mobile adjustments for footer */
@media (max-width: 600px) {
  .contact-footer {
    padding: 6px 10px;
  }

  .contact-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
  }

  .contact-link,
  .contact-address {
    font-size: 12px;
  }

  .contact-divider {
    display: none;
  }

  .social-links {
    margin-right: 0;
    gap: 8px;
  }

  .social-link {
    width: 28px;
    height: 28px;
  }

  .social-link svg {
    width: 14px;
    height: 14px;
  }

  .whatsapp-float {
    bottom: 44px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Mobile adjustments for modal */
@media (max-width: 600px) {
  .modal-content {
    padding: 28px 20px;
    margin: 10px;
    border-radius: 12px;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-submit {
    padding: 12px 20px;
    font-size: 16px;
  }
}
