/* ==========================================================================
   BILGIN YACHTS - ULTRA-LUXURY FOOTER & MODAL SYSTEM
   Aesthetic: Deep Obsidian Navy, Warm Brushed Gold Accents, Sleek Glassmorphism
   ========================================================================== */

/* Variables & Scoping */
:root {
  --lf-gold: #c4b18c;
  --lf-gold-dark: #9e8d6c;
  --lf-btn-gold: #ceb482;
  --lf-btn-dark: #aa9060;
  --lf-btn-hover-start: #dfc99c;
  --lf-btn-hover-end: #bca170;
  --lf-btn-glow: rgba(206, 180, 130, 0.38);
  --lf-gold-light: #ded2be;
  --lf-gold-glow: rgba(196, 177, 140, 0.35);
  --lf-bg-obsidian: #02070d;
  --lf-bg-card: rgba(8, 20, 36, 0.95);
  --lf-border-glass: rgba(255, 255, 255, 0.08);
  --lf-border-gold: rgba(196, 177, 140, 0.28);
  --lf-text-dim: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   1. MAIN FOOTER STYLING
   -------------------------------------------------------------------------- */
footer#footer {
  background: radial-gradient(circle at 50% 0%, #061527 0%, #01050a 85%) !important;
  color: #fff !important;
  position: relative !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--lf-border-gold) !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
}

/* Subtle Gold Accent Light Beam at top of footer */
footer#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(196, 177, 140, 0.7) 50%, transparent 100%);
  pointer-events: none;
}

/* Inner Grid Wrapper */
footer#footer .row {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 80px 32px 50px 32px !important;
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr 1.6fr !important;
  gap: 48px !important;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Clear bootstrap float overrides */
footer#footer .col {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* Column 1: Brand & Crest */
#foooter-logo {
  text-align: left !important;
  margin: 0 0 20px 0 !important;
}

#foooter-logo a {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#foooter-logo a:hover {
  transform: scale(1.04);
}

#foooter-logo img {
  height: 72px !important;
  width: auto !important;
  margin: 0 !important;
  filter: drop-shadow(0 4px 18px rgba(196, 177, 140, 0.35));
}

.footer-brand-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--lf-text-dim);
  margin-top: 18px;
  max-width: 280px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.footer-brand-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-contact a {
  font-size: 12px;
  color: var(--lf-gold-light);
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.footer-brand-contact a:hover {
  color: #fff;
}

/* Columns 2 & 3: Navigation Links */
#footer-link {
  display: flex;
  flex-direction: column;
}

.footer-col-heading {
  font-family: 'Cinzel', 'GT Super Ds Trial Rg', 'Cormorant Garamond', serif !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 0 24px 0 !important;
  font-weight: 400 !important;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-col-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 1.5px;
  background: var(--lf-gold);
}

#footer-link ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#footer-link li {
  margin: 0 !important;
  padding: 0 !important;
}

#footer-link li a {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 11.5px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative;
}

#footer-link li a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--lf-gold);
  margin-right: 0;
  transition: all 0.3s ease;
}

#footer-link li a:hover {
  color: var(--lf-gold-light) !important;
  transform: translateX(4px);
}

#footer-link li a:hover::before {
  width: 8px;
  margin-right: 8px;
}

/* Column 4: Newsletter & Social */
#footer-right {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

#footer-right p {
  color: var(--lf-text-dim) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  font-weight: 300 !important;
}

/* Inline Subscribe Form */
#subscribe-form {
  margin: 0 0 28px 0 !important;
  text-align: left !important;
  width: 100% !important;
}

.luxury-subscribe-box {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--lf-border-gold) !important;
  border-radius: 40px !important;
  padding: 4px 6px 4px 20px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.luxury-subscribe-box:focus-within {
  border-color: var(--lf-gold) !important;
  background: rgba(196, 177, 140, 0.05) !important;
  box-shadow: 0 0 20px rgba(196, 177, 140, 0.25) !important;
}

#subscribe-form input.email {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  width: 100% !important;
  padding: 10px 10px 10px 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

#subscribe-form input.email::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

#subscribe-form input.button {
  background: linear-gradient(135deg, var(--lf-btn-gold, #ceb482), var(--lf-btn-dark, #aa9060)) !important;
  color: #000 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 12px 26px !important;
  border-radius: 30px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 15px rgba(206, 180, 130, 0.35) !important;
  margin: 0 !important;
  width: auto !important;
}

#subscribe-form input.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(206, 180, 130, 0.55) !important;
}

/* Social Icons */
.footerSocial {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  text-align: left !important;
  padding: 0 !important;
  margin-top: 5px !important;
}

.footerSocial a {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 15px !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footerSocial a:hover {
  background: var(--lf-gold) !important;
  border-color: var(--lf-gold) !important;
  color: #000 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 22px rgba(196, 177, 140, 0.45) !important;
}

/* Bottom Copyright Bar */
#copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(0, 0, 0, 0.4) !important;
  position: relative;
  z-index: 2;
}

.copyright-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

#copyright p {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11.5px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.copyright-legal-links {
  display: flex;
  gap: 20px;
}

.copyright-legal-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.copyright-legal-links a:hover {
  color: var(--lf-gold-light);
}

/* --------------------------------------------------------------------------
   2. LUXURY POPUP MODALS (#enquiryBIG, #newsletterBIG)
   CRITICAL: Must be display: none by default and open as luxury fixed modals!
   -------------------------------------------------------------------------- */
#enquiryBIG,
#newsletterBIG {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(1, 4, 8, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 1000000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

/* Modal Card Box */
#enquiryBIG form,
#newsletterBIG form {
  background: #06111e !important;
  border: 1px solid var(--lf-border-gold) !important;
  border-radius: 24px !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(196, 177, 140, 0.18) !important;
  max-width: 520px !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: auto !important;
  padding: 50px 42px 45px 42px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 1000001 !important;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Header */
#enquiryBIG form h3,
#newsletterBIG form h3 {
  font-family: 'Cinzel', 'GT Super Ds Trial Rg', 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 0 28px 0 !important;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

#enquiryBIG form h3::after,
#newsletterBIG form h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 1.5px;
  background: var(--lf-gold);
}

/* Modal Inputs */
#enquiryBIG form input.email,
#newsletterBIG form input.email,
#enquiryBIG form input[type="text"],
#enquiryBIG form input[type="email"],
#newsletterBIG form input[type="text"],
#newsletterBIG form input[type="email"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  outline: none !important;
  width: 100% !important;
  padding: 14px 18px !important;
  margin: 0 0 16px 0 !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  text-align: left !important;
}

#enquiryBIG form input.email:focus,
#newsletterBIG form input.email:focus {
  border-color: var(--lf-gold) !important;
  background: rgba(196, 177, 140, 0.06) !important;
  box-shadow: 0 0 18px rgba(196, 177, 140, 0.22) !important;
}

#enquiryBIG form input.email::placeholder,
#newsletterBIG form input.email::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Checkbox and Privacy Policy Label */
#enquiryBIG form .d-ndone {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  margin: 10px 0 20px 0 !important;
  width: 100% !important;
  text-align: left !important;
}

#enquiryBIG form .d-ndone a {
  color: var(--lf-gold-light) !important;
  text-decoration: underline !important;
}

#enquiryBIG form input[type="checkbox"] {
  accent-color: var(--lf-gold) !important;
  margin-right: 8px !important;
  cursor: pointer !important;
}

/* Modal Submit Button */
#enquiryBIG form input.button,
#newsletterBIG form input.button,
#enquiryBIG form input[type="submit"],
#newsletterBIG form input[type="submit"] {
  width: 100% !important;
  background: linear-gradient(135deg, var(--lf-btn-gold, #ceb482), var(--lf-btn-dark, #aa9060)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  padding: 16px 0 !important;
  border-radius: 35px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 25px rgba(206, 180, 130, 0.38) !important;
  margin: 10px 0 0 0 !important;
}

#enquiryBIG form input.button:hover:not(:disabled),
#newsletterBIG form input.button:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(206, 180, 130, 0.58) !important;
}

#enquiryBIG form input.button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Close 'X' Button on Modal */
#enquiryformCLOSE,
#newsletterformCLOSE {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0 !important; /* Hide 'close' text */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#enquiryformCLOSE::before,
#newsletterformCLOSE::before {
  content: '✕' !important;
  font-size: 16px !important;
  color: #fff !important;
  display: block !important;
}

#enquiryformCLOSE:hover,
#newsletterformCLOSE:hover {
  background: rgba(196, 177, 140, 0.2) !important;
  border-color: var(--lf-gold) !important;
  color: #fff !important;
  transform: rotate(90deg) !important;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  footer#footer .row {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    padding: 60px 24px 40px 24px !important;
  }
}

@media (max-width: 640px) {
  footer#footer .row {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 50px 20px 30px 20px !important;
  }
  
  .copyright-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  #enquiryBIG form,
  #newsletterBIG form {
    padding: 36px 24px 30px 24px !important;
  }
}
