/* ================================
   ZORYA ANALYTICS - COMMON STYLES
   ================================ */

/* CSS Variables */
:root {
    --brand-orange: #ff5a08;
    --brand-gold:   #f8a932;
    --navy:         #101624;
    --link-dark:    #1c273b;
    --accent-blue:  #99b9e6;
  }
  
  /* Global Reset */
  * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: "Montserrat", sans-serif; 
  }
  
  body { 
    background: #ffffff; 
    color: var(--navy); 
    line-height: 1.6; 
    padding-top: 36px; /* Updated from 72px to 36px */
  }
  
  /* Remove default focus outline and add custom focus styles */
  *:focus {
    outline: none;
  }
  
  /* Custom selection colors */
  ::selection {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    color: white;
  }
  
  ::-moz-selection {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    color: white;
  }
  
  /* ================================
     BUTTONS
     ================================ */
  
  .btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0.85rem 1.6rem; 
    border-radius: 12px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    white-space: nowrap; 
    border: none;
    font-size: 1rem;
  }
  
  .btn-primary { 
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold)); 
    color: white; 
  }
  
  .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: white;
    color: var(--brand-orange);
    position: relative;
    overflow: hidden;
  }
  
  .btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
  }
  
  .btn-secondary span {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    border: 2px solid white;
    transform: translateY(-2px);
  }
  
  .btn-secondary:hover span {
    -webkit-text-fill-color: white;
    color: white;
  }
  
  /* ================================
     HEADER
     ================================ */
  
  header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 72px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 4%; 
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); 
    z-index: 100; 
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }
  
  header a[aria-label="Home"] img {
    height: 56px;
    width: auto;
    margin-top: 10px;
  }
  
  nav { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
  }
  
  nav a { 
    font-weight: 500; 
    color: var(--navy); 
    text-decoration: none; 
    transition: color .2s ease; 
  }
  
  nav a:hover { 
    color: var(--brand-orange); 
  }
  
  /* Enhanced Dropdown */
  .dropdown { 
    position: relative; 
  }
  
  .dropbtn { 
    font-weight: 500; 
    color: var(--navy); 
    text-decoration: none; 
    padding: 0.5rem 0; 
    transition: color .2s ease; 
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .dropdown:hover .dropbtn { 
    color: var(--brand-orange); 
  }
  
  .dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #fff; 
    border: 1px solid rgba(0,0,0,.1); 
    border-radius: 6px; 
    box-shadow: 0 4px 12px rgba(0,0,0,.12); 
    padding: .5rem 0; 
    width: 180px; 
    z-index: 200; 
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  
  .dropdown:hover .dropdown-content { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .dropdown-content a { 
    display: block; 
    padding: .75rem 1rem; 
    font-weight: 500; 
    color: var(--navy); 
    text-decoration: none; 
    white-space: nowrap; 
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .dropdown-content a:hover { 
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold)); 
    color: #fff; 
    transform: translateX(2px);
  }
  
  .dropdown-content a:focus {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold)); 
    color: #fff; 
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
  
  .dropdown-content a:active {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold)); 
    color: #fff; 
    transform: translateX(1px) translateY(1px);
  }
  
  .nav-tools { 
    display: flex; 
    gap: .75rem; 
    align-items: center; 
  }
  
  .nav-tools .btn-secondary {
    padding: 0.55rem 1rem; 
    font-size: 0.9rem;
  }
  
  /* ================================
     MOBILE MENU
     ================================ */
  
  .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }
  
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu-content {
    padding: 1rem 0;
  }
  
  .mobile-menu-dropdown {
    margin-bottom: 0;
  }
  
  .mobile-menu-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
  }
  
  .mobile-menu-dropdown-toggle:hover {
    background: #f8f9fa;
    color: var(--brand-orange);
  }
  
  .mobile-menu-dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
  }
  
  .mobile-menu-dropdown.active .mobile-menu-dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .mobile-menu-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
  }
  
  .mobile-menu-dropdown.active .mobile-menu-dropdown-content {
    max-height: 200px;
  }
  
  .mobile-menu-dropdown-link {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }
  
  .mobile-menu-main-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
  }
  
  .mobile-menu-cta {
    margin: 1.5rem;
    padding-top: 1.5rem;
  }
  
  /* ================================
     FOOTER
     ================================ */
  
  footer {
    background: linear-gradient(to top, var(--brand-orange), var(--brand-gold));
    color: #ffffff;
    padding: 2rem 0;
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-social a {
    transition: opacity 0.2s ease;
  }
  
  .footer-social img {
    width: 24px;
    height: 24px;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-copyright {
    color: white;
    font-size: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    font-size: 0.8rem;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-links a:hover {
    color: white !important;
    font-weight: 700;
  }
  
  /* Highlight current page in footer */
  .footer-links a.current-page {
    font-weight: 600;
  }
  
  /* ================================
     UTILITY CLASSES
     ================================ */
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .learn-more { 
    color: var(--brand-orange); 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease;
  }
  
  .learn-more:hover { 
    text-decoration: underline;
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* ================================
     CONTACT MODAL (Common across all pages)
     ================================ */
  
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    backdrop-filter: blur(4px);
  }
  
  .modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .contact-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
  
  @keyframes slideUp {
    from { 
      opacity: 0;
      transform: translateY(30px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-header {
    background: white;
    color: var(--navy);
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    position: relative;
    text-align: center;
  }
  
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--navy);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
  }
  
  .modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
  }
  
  .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-orange);
  }
  
  .modal-subtitle {
    color: #A7A7A7;
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .form-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 8, 0.1);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .form-select {
    cursor: pointer;
  }
  
  .submit-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
  }
  
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 8, 0.3);
  }
  
  .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  .required {
    color: var(--brand-orange);
  }
  
  .privacy-notice {
    font-size: 0.85rem;
    color: #7f8692;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
  }
  
  .thank-you-screen {
    display: none;
    text-align: center;
    padding: 2rem;
  }
  
  .thank-you-screen.show {
    display: block;
    animation: slideUp 0.3s ease-out;
  }
  
  .thank-you-icon {
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .thank-you-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
  }
  
  .thank-you-message {
    font-size: 1.1rem;
    color: #7f8692;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  .thank-you-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .thank-you-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
  }
  
  .thank-you-details p {
    color: #7f8692;
    font-size: 0.95rem;
  }
  
  .close-thank-you-btn {
    background: white;
    color: var(--brand-orange);
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-thank-you-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
  }
  
  .close-thank-you-btn span {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .close-thank-you-btn:hover {
    background: linear-gradient(45deg, var(--brand-orange), var(--brand-gold));
    border: 2px solid white;
    transform: translateY(-2px);
  }
  
  .close-thank-you-btn:hover span {
    -webkit-text-fill-color: white;
    color: white;
  }
  
  /* ================================
     RESPONSIVE DESIGN
     ================================ */
  
  @media (max-width: 768px) {
    .container { 
      padding: 0 1rem; 
    }
  
    /* Pin header on mobile */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1100;
      padding: 0 2%;
    }
    
    body {
      padding-top: 36px; /* Keep the same reduced padding on mobile */
    }
    
    .mobile-menu {
      top: 72px;
      height: calc(100% - 72px);
    }
    
    .mobile-menu-overlay {
      top: 72px;
      height: calc(100% - 72px);
    }
  
    /* Mobile navigation improvements */
    .mobile-menu-toggle {
      display: block;
    }
    
    nav {
      display: none;
    }
    
    .nav-tools .btn {
      display: none;
    }
    
    /* Center the logo on mobile */
    header a[aria-label="Home"] {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
    }
    
    /* Ensure mobile menu toggle stays on the left */
    .mobile-menu-toggle {
      position: relative;
      z-index: 11;
    }
  
    /* Form responsiveness */
    .form-row {
      grid-template-columns: 1fr;
    }
    
    .modal-body {
      padding: 1.5rem;
    }
    
    .modal-header {
      padding: 1.5rem;
    }
  
    .contact-modal {
      width: 95%;
      margin: 10px;
    }
  
    /* Footer responsive */
    .footer-links {
      flex-direction: column;
      gap: 1rem;
    }
  }