/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-medium);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
}

/* Scrolled state */
.header.scrolled {
  height: var(--header-scrolled-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Premium Logo */
.logo {
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.logo span {
  color: var(--accent-gold);
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 12px;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-medium);
}

.logo:hover::after {
  width: 100%;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-medium);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-link.active {
  color: var(--text-primary);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-medium);
  border-radius: var(--radius-full);
}

/* Mobile Toggle active state */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-medium);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
  transform: translateY(-3px);
}

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

.footer-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span {
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Inputs & Form Elements
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-medium);
}

.form-control:focus {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  display: none;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background-color: rgba(31, 249, 145, 0.1);
  color: #1ff991;
  border: 1px solid rgba(31, 249, 145, 0.2);
}

.form-status.error {
  display: block;
  background-color: rgba(255, 101, 101, 0.1);
  color: #ff6565;
  border: 1px solid rgba(255, 101, 101, 0.2);
}

/* Honeypot field (hidden from humans, visible to bots) */
.contact-field-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Input prefix & icon wrappers */
.phone-input-wrapper,
.form-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: var(--radius-sm);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.phone-input-wrapper .phone-prefix,
.form-input-wrapper .input-icon {
  padding: 16px 12px 16px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  border-right: 1px solid var(--border-color);
  user-select: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.form-input-wrapper .input-icon svg,
.phone-input-wrapper .phone-prefix svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
  display: block;
}

.phone-input-wrapper input.form-control,
.form-input-wrapper input.form-control,
.form-input-wrapper select.form-control {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding-left: 12px !important;
  flex: 1;
  height: 100%;
}

/* Custom styled select box dropdown arrow */
.form-input-wrapper select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23DEDEDE'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px !important;
  color: var(--text-primary) !important;
}

/* Explicitly style options for dark backgrounds to prevent native browser overrides */
.form-input-wrapper select.form-control option {
  background-color: var(--surface-color) !important;
  color: var(--text-primary) !important;
}

.phone-input-wrapper:focus-within,
.form-input-wrapper:focus-within {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

/* ==========================================================================
   Lazy Loading Indicators & Skeletons
   ========================================================================== */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-color);
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.lazy-load.loaded {
  opacity: 1;
}

/* ==========================================================================
   Floating Widgets & Sticky Items
   ========================================================================== */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-medium);
}

.whatsapp-sticky:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-sticky svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
