/* Global Responsive Design for All Pages */

/* ================================
   SCROLLBAR - Gold Theme (all pages)
   ================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d4af37, #b8941f); border-radius: 5px; border: 2px solid #1a1a1a; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f5e08b, #d4af37); }
::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #f5e08b, #ffe066); border-color: #d4af37; }
::-webkit-scrollbar-corner { background: #1a1a1a; }

html { scrollbar-width: auto; scrollbar-color: #d4af37 #1a1a1a; }
body { scrollbar-width: auto; scrollbar-color: #d4af37 #1a1a1a; }

/* ===================================
   MOBILE DEVICES (max-width: 768px)
   =================================== */
@media (max-width: 768px) {
  /* General Layout */
  .container {
    padding: 0 15px !important;
  }
  
  body {
    font-size: 14px !important;
  }
  
  /* Navigation - Desktop nav hidden on mobile */
  .site-nav {
    display: none !important;
  }

  .lang-switch {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }
  
  /* Hero Sections */
  .enhanced-hero {
    height: 70vh !important;
  }
  
  .enhanced-hero h1 {
    font-size: clamp(28px, 6vw, 42px) !important;
    margin-bottom: 20px !important;
  }
  
  .enhanced-hero p {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
  
  .cta-primary {
    padding: 15px 30px !important;
    font-size: 16px !important;
  }
  
  /* Cards & Grids */
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .card {
    padding: 20px !important;
    border-radius: 15px !important;
  }
  
  .card h3 {
    font-size: 1.2rem !important;
  }
  
  .card p {
    font-size: 0.9rem !important;
  }
  
  /* Forms */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  input, select, textarea {
    padding: 12px 15px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  
  label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }
  
  /* Buttons */
  .main-btn, .ghost-btn, .submit-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 25px !important;
  }
  
  /* Sections */
  section {
    padding: 50px 0 !important;
  }
  
  .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }
  
  /* Tables */
  table {
    font-size: 12px !important;
  }
  
  th, td {
    padding: 8px !important;
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Hide/Show Elements */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
}

/* ===================================
   TABLET DEVICES (769px - 1024px)
   =================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  /* General Layout */
  .container {
    padding: 0 20px !important;
  }
  
  body {
    font-size: 15px !important;
  }
  
  /* Hero Sections */
  .enhanced-hero {
    height: 80vh !important;
  }
  
  .enhanced-hero h1 {
    font-size: clamp(32px, 5vw, 48px) !important;
  }
  
  .enhanced-hero p {
    font-size: 17px !important;
  }
  
  /* Cards & Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
  
  .card {
    padding: 25px !important;
  }
  
  .card h3 {
    font-size: 1.3rem !important;
  }
  
  /* Forms */
  .form-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  input, select, textarea {
    padding: 13px 16px !important;
    font-size: 15px !important;
  }
  
  /* Buttons */
  .main-btn, .ghost-btn, .submit-btn {
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  
  /* Sections */
  section {
    padding: 60px 0 !important;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
  /* General Layout */
  .container {
    padding: 0 10px !important;
  }
  
  body {
    font-size: 13px !important;
  }
  
  /* Hero Sections */
  .enhanced-hero {
    height: 60vh !important;
  }
  
  .enhanced-hero h1 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
  
  .enhanced-hero p {
    font-size: 14px !important;
  }
  
  .cta-primary {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }
  
  /* Cards */
  .card {
    padding: 15px !important;
    border-radius: 12px !important;
  }
  
  .card h3 {
    font-size: 1.1rem !important;
  }
  
  .card p {
    font-size: 0.85rem !important;
  }
  
  /* Forms */
  input, select, textarea {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  /* Buttons */
  .main-btn, .ghost-btn, .submit-btn {
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
  
  /* Sections */
  section {
    padding: 40px 0 !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  /* Navigation */
  .site-brand__text {
    font-size: 0.8rem !important;
  }
  
  .site-brand__mark {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ===================================
   LARGE DESKTOP (min-width: 1200px)
   =================================== */
@media (min-width: 1200px) {
  /* General Layout */
  .container {
    padding: 0 30px !important;
  }
  
  /* Hero Sections */
  .enhanced-hero h1 {
    font-size: clamp(48px, 6vw, 72px) !important;
  }
  
  .enhanced-hero p {
    font-size: 20px !important;
  }
  
  /* Cards & Grids */
  .grid-4 {
    gap: 35px !important;
  }
  
  .grid-3 {
    gap: 35px !important;
  }
  
  .card {
    padding: 35px !important;
  }
  
  .card h3 {
    font-size: 1.5rem !important;
  }
  
  /* Forms */
  input, select, textarea {
    padding: 16px 20px !important;
    font-size: 16px !important;
  }
  
  /* Buttons */
  .main-btn, .ghost-btn, .submit-btn {
    padding: 16px 32px !important;
    font-size: 16px !important;
  }
  
  /* Sections */
  section {
    padding: 80px 0 !important;
  }
  
  .section-title {
    font-size: 2.5rem !important;
  }
}

/* ===================================
   EXTRA LARGE DESKTOP (min-width: 1400px)
   =================================== */
@media (min-width: 1400px) {
  .enhanced-hero h1 {
    font-size: clamp(56px, 7vw, 80px) !important;
  }
  
  .grid-4 {
    gap: 40px !important;
  }
  
  .card {
    padding: 40px !important;
  }
}

/* ===================================
   COMMON RESPONSIVE FIXES
   =================================== */

/* Prevent Horizontal Overflow */
* {
  box-sizing: border-box;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
}

html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

/* Responsive Images */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Responsive Videos */
video, iframe {
  max-width: 100% !important;
  height: auto !important;
}

/* Responsive Tables */
table {
  width: 100% !important;
  table-layout: fixed !important;
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
  }
}

/* Responsive Typography */
h1 {
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 2.5rem) !important;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 2rem) !important;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
}

p {
  font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
}

/* Responsive Spacing */
@media (max-width: 768px) {
  .mb-4 { margin-bottom: 1.5rem !important; }
  .mb-3 { margin-bottom: 1rem !important; }
  .mb-2 { margin-bottom: 0.5rem !important; }
  
  .mt-4 { margin-top: 1.5rem !important; }
  .mt-3 { margin-top: 1rem !important; }
  .mt-2 { margin-top: 0.5rem !important; }
  
  .p-4 { padding: 1.5rem !important; }
  .p-3 { padding: 1rem !important; }
  .p-2 { padding: 0.5rem !important; }
}

/* Touch Friendly */
@media (max-width: 768px) {
  button, a, input, select, textarea {
    min-height: 44px !important;
  }
  
  .click-target {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Performance Optimizations */
@media (max-width: 768px) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  
  .site-header, .site-footer, button, .nav-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid !important;
  }
  
  img {
    max-width: 100% !important;
  }
  
  a {
    text-decoration: underline !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")" !important;
  }
}
