/* ============================================
   AMERICAS CHAMBER FOR BUSINESS
   Mobile-First Luxury Enhancement Layer
   "Better on mobile than desktop"
   ============================================ */

/* ---------- MOBILE NAVIGATION ENHANCEMENTS ---------- */
@media (max-width: 992px) {
  .mobile-menu-overlay {
    background: linear-gradient(180deg, rgba(10,22,40,0.99) 0%, rgba(15,25,50,0.99) 50%, rgba(10,22,40,0.99) 100%);
    padding: 100px 40px 60px;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .mobile-menu-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(201,168,76,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(74,124,155,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }

  .mobile-menu-overlay .mobile-nav {
    width: 100%;
    max-width: 400px;
  }

  .mobile-menu-overlay .mobile-nav > li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    overflow: hidden;
  }

  .mobile-menu-overlay .mobile-nav > li > a {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    padding: 18px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-overlay .mobile-nav > li.has-sub > a::after {
    content: '+';
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.4s ease;
    font-weight: 300;
  }

  .mobile-menu-overlay .mobile-nav > li.has-sub.open > a::after {
    transform: rotate(45deg);
  }

  .mobile-menu-overlay .mobile-sub {
    padding-left: 20px;
  }

  .mobile-menu-overlay .mobile-sub li {
    border-left: 1px solid rgba(201,168,76,0.15);
    padding-left: 20px;
  }

  .mobile-menu-overlay .mobile-sub li a {
    padding: 12px 0;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .mobile-menu-overlay .mobile-lang {
    margin-top: 50px;
    justify-content: center;
  }

  .mobile-menu-overlay .mobile-lang button {
    padding: 12px 28px;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
  }

  /* Elegant menu toggle animation */
  .menu-toggle {
    width: 32px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .menu-toggle span {
    position: absolute;
    width: 28px;
    height: 1px;
    background: var(--text-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .menu-toggle span:nth-child(1) { top: 4px; }
  .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .menu-toggle span:nth-child(3) { bottom: 4px; }

  .menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--gold);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background: var(--gold);
  }
}

/* ---------- MOBILE HERO ENHANCEMENTS ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 30px;
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
  }

  .hero-content .hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .hero-scroll {
    bottom: 30px;
  }

  .hero-scroll .scroll-line {
    height: 40px;
  }

  /* Page hero mobile */
  .page-hero {
    height: 60vh;
    min-height: 400px;
  }

  .page-hero .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ---------- MOBILE SECTION ENHANCEMENTS ---------- */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

  /* Disable parallax on mobile for performance */
  .section-bg-image,
  .parallax-bg {
    background-attachment: scroll !important;
  }

  /* Ensure all sections have visible backgrounds */
  .section-bg-image {
    transform: scale(1.02);
  }

  /* Better text readability on mobile */
  p {
    font-size: 1rem;
    line-height: 1.8;
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
  }

  h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
  }

  .divider-gold,
  .divider-gold-left {
    margin: 20px auto;
    width: 60px;
  }

  .divider-gold-left {
    margin: 20px 0;
  }
}

/* ---------- MOBILE CARD ENHANCEMENTS ---------- */
@media (max-width: 768px) {
  .luxury-card {
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(10,22,40,0.5);
    border: 1px solid rgba(201,168,76,0.12);
    margin-bottom: 5px;
  }

  .luxury-card:active {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.3);
  }

  .luxury-card .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }

  .luxury-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .luxury-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .card-grid {
    gap: 15px;
  }
}

/* ---------- MOBILE TIER CARDS ---------- */
@media (max-width: 768px) {
  .tier-card {
    padding: 50px 30px;
    margin-bottom: 5px;
    background: rgba(10,22,40,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .tier-card.featured {
    transform: none;
    border-color: var(--gold);
    background: rgba(201,168,76,0.06);
  }

  .tier-card.featured:hover {
    transform: none;
  }

  .tier-card .tier-price {
    font-size: 3rem;
  }

  .tier-card .tier-features li {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}

/* ---------- MOBILE STATS ---------- */
@media (max-width: 768px) {
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    justify-items: center;
  }

  .stat-number {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
}

/* ---------- MOBILE SPLIT SECTIONS ---------- */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: 40vh;
    order: -1;
  }

  .split-content {
    padding: 60px 30px;
  }
}

/* ---------- MOBILE TESTIMONIALS ---------- */
@media (max-width: 768px) {
  .testimonial {
    padding: 30px 15px;
  }

  .testimonial .quote-mark {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  .testimonial blockquote {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .testimonial .author {
    font-size: 0.7rem;
  }
}

/* ---------- MOBILE CTA ---------- */
@media (max-width: 768px) {
  .cta-banner {
    padding: 80px 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .cta-banner p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
}

/* ---------- MOBILE BUTTONS ---------- */
@media (max-width: 768px) {
  .btn-gold, .btn-outline {
    padding: 16px 40px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    width: auto;
    display: inline-block;
  }

  /* Touch-friendly tap targets */
  .btn-gold:active, .btn-outline:active {
    transform: scale(0.98);
  }
}

/* ---------- MOBILE FORMS ---------- */
@media (max-width: 768px) {
  .luxury-form {
    padding: 0;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 16px 18px;
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: 0; /* iOS reset */
    -webkit-appearance: none;
  }

  .form-group label {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ---------- MOBILE FOOTER ---------- */
@media (max-width: 768px) {
  .footer {
    padding: 70px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 15px auto 0;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col h4 {
    margin-bottom: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }
}

/* ---------- MOBILE NEWSLETTER ---------- */
@media (max-width: 768px) {
  .luxury-form[style*="display:flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .luxury-form[style*="display:flex"] input {
    min-width: 100% !important;
    font-size: 16px !important;
  }
}

/* ---------- MOBILE CALENDAR ---------- */
@media (max-width: 768px) {
  .calendar-wrapper {
    padding: 20px 12px;
    border: none;
    background: rgba(10,22,40,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .cal-cell {
    min-height: 48px;
    aspect-ratio: auto;
    padding: 6px 2px;
  }

  .cal-cell.cal-has-event {
    background: rgba(201,168,76,0.06);
  }

  .cal-cell.cal-has-event:active {
    background: rgba(201,168,76,0.15);
    transform: scale(1.1);
  }

  .event-modal-inner {
    padding: 30px 24px;
    margin: 10px;
    max-height: 92vh;
  }

  .event-modal-item h3 {
    font-size: 1.3rem;
    padding-right: 30px;
  }

  .event-modal-item .btn-gold {
    width: 100%;
    text-align: center;
    padding: 16px 30px;
  }

  .event-list-item {
    padding: 20px;
    gap: 15px;
    flex-direction: row;
    align-items: center;
  }

  .event-list-item:active {
    background: rgba(201,168,76,0.1);
  }

  .event-date-badge {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
  }

  .event-list-info h4 {
    font-size: 1.1rem;
  }
}

/* ---------- ULTRA-SMALL MOBILE (< 380px) ---------- */
@media (max-width: 380px) {
  .container {
    padding: 0 18px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .hero-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .btn-gold, .btn-outline {
    padding: 14px 30px;
    font-size: 0.65rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .luxury-card {
    padding: 30px 20px;
  }

  .tier-card {
    padding: 40px 20px;
  }

  .tier-card .tier-price {
    font-size: 2.5rem;
  }
}

/* ---------- SMOOTH PAGE TRANSITIONS ---------- */
body {
  animation: pageReveal 0.8s ease forwards;
}

@keyframes pageReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- TOUCH FEEDBACK ---------- */
@media (hover: none) and (pointer: coarse) {
  .luxury-card:active,
  .tier-card:active,
  .btn-gold:active,
  .btn-outline:active,
  .event-list-item:active,
  .cal-cell.cal-has-event:active {
    opacity: 0.9;
    transition-duration: 0.1s;
  }

  /* Remove hover effects on touch devices */
  .luxury-card:hover {
    transform: none;
  }

  .tier-card:hover {
    transform: none;
  }

  .nav-menu > li > a:hover::after {
    transform: scaleX(0);
  }
}

/* ---------- SAFE AREA SUPPORT (iPhone notch) ---------- */
@supports (padding: max(0px)) {
  .nav-wrapper {
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .nav-wrapper.scrolled {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .footer-bottom {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  .mobile-menu-overlay {
    padding-top: max(100px, calc(env(safe-area-inset-top) + 80px));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

/* ---------- GOLD SHIMMER EFFECT ON HEADINGS ---------- */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-content h1 {
  background: linear-gradient(
    90deg,
    var(--text-light) 0%,
    var(--text-light) 40%,
    var(--gold-light) 50%,
    var(--text-light) 60%,
    var(--text-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s linear infinite;
}

/* ---------- LUXURY GLOW EFFECT ON GOLD BUTTONS ---------- */
.btn-gold {
  position: relative;
  box-shadow: 0 4px 20px rgba(201,168,76,0.2);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(10px);
}

.btn-gold:hover::after {
  opacity: 0.4;
}

/* ---------- FLOATING GOLD PARTICLES (CSS only) ---------- */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(201,168,76,0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(201,168,76,0.2), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(201,168,76,0.3), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(201,168,76,0.15), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(201,168,76,0.25), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(201,168,76,0.2), transparent),
    radial-gradient(2px 2px at 50% 90%, rgba(201,168,76,0.15), transparent);
  z-index: 2;
  pointer-events: none;
  animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-5px); }
  75% { transform: translateY(-30px) translateX(15px); }
  100% { transform: translateY(0) translateX(0); }
}

/* ---------- VIGNETTE EFFECT ON SECTIONS ---------- */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 150px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 2;
}

.section .section-content {
  z-index: 3;
  position: relative;
}

/* ---------- ELEGANT SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) var(--navy);
}

/* ---------- SELECTION COLOR ---------- */
::selection {
  background: rgba(201,168,76,0.3);
  color: var(--text-light);
}

::-moz-selection {
  background: rgba(201,168,76,0.3);
  color: var(--text-light);
}

/* ---------- FOCUS STYLES FOR ACCESSIBILITY ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .nav-wrapper,
  .mobile-menu-overlay,
  .menu-toggle,
  .hero-video-bg,
  .hero-scroll,
  .footer-social,
  .lang-switcher,
  #preloader {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section-overlay,
  .hero-overlay,
  .footer-overlay {
    display: none;
  }
}
